[systemd-devel] sd-daemon documentation clarification

Mantas Mikulėnas grawity at gmail.com
Mon Mar 2 12:02:27 UTC 2020


On Mon, Mar 2, 2020 at 1:38 PM Łukasz Niemier <lukasz at niemier.pl> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200302/ef21c7e5/attachment.htm>


More information about the systemd-devel mailing list