Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultLevelKey = "lvl"
Variables ¶
This section is empty.
Functions ¶
func IsJournalStream ¶
func IsJournalStream(file statter) bool
Returns whether the file is the same as $JOURNAL_STREAM. If file is nil, os.Stderr is checked.
https://systemd.io/JOURNAL_NATIVE_PROTOCOL/
Why bother with this environment variable check? A service program invoked by systemd might employ shell-style I/O redirection on invoked subprograms, and those should likely not upgrade to the native Journal protocol, but instead continue to use the redirected file descriptors passed to them.
Types ¶
Click to show internal directories.
Click to hide internal directories.