Re: sd-daemon documentation clarification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 2, 2020 at 1:38 PM Łukasz Niemier <lukasz@xxxxxxxxxx> wrote:
`man 3 sd-daemon` states that `SD_*` prefixes works with `stderr` logging:

These prefixes are intended to be used in conjunction with stderr-based logging as implemented by systemd.

But only if `StandardError=` is set to one of `journal`, `syslog`, or `kmsg`. Does that mean that these prefixes do not work with `StandardOutput=journal`?

I am writing Erlang logger integration and I am just curious if I should force user to use `stdandard_error` output or it could work with `standard_output` as well.

AFAIK both stdout and stderr even get attached to the same journal pipe by default, so they should also be interpreted in the same way.

The description of SyslogLevelPrefix= in systemd.exec(5) also says: "This only applies to log messages written to stdout or stderr."

--
Mantas Mikulėnas
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux