pub fn connected_to_journal() -> bool
Expand description

Whether the current process is directly connected to the systemd journal.

Return true if the device and inode numbers of the std::io::stderr file descriptor match the value of $JOURNAL_STREAM (see systemd.exec(5)). Otherwise, return false.