Re: [systemd-devel] sd-daemon documentation clarification
On Mo, 02.03.20 13:38, Łukasz Niemier (luk...@niemier.pl) wrote: > > 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.” > > THX, I must have missed that. This mean that the `sd-daemon` > documentation page should be updated to contain that information as > well. https://github.com/systemd/systemd/pull/15283 Lennart -- Lennart Poettering, Berlin ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] sd-daemon documentation clarification
On Mon, Mar 02, 2020 at 01:38:54PM +0100, Łukasz Niemier wrote: > > 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.” > > THX, I must have missed that. This mean that the `sd-daemon` documentation > page should be updated to contain that information as well. Please file a PR! Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] sd-daemon documentation clarification
> 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.” THX, I must have missed that. This mean that the `sd-daemon` documentation page should be updated to contain that information as well. -- Łukasz Niemier luk...@niemier.pl ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] sd-daemon documentation clarification
On Mon, Mar 2, 2020 at 1:38 PM Łukasz Niemier 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@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] sd-daemon documentation clarification
`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. -- Łukasz Niemier luk...@niemier.pl ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel