pub fn stderr_connected_to_journal() -> bool
Expand description

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

You can use this function to implement KnownLogTarget::Auto.

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.