<div dir="ltr"><div dir="ltr">On Mon, Mar 2, 2020 at 1:38 PM Łukasz Niemier <<a href="mailto:lukasz@niemier.pl">lukasz@niemier.pl</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><div>`man 3 sd-daemon` states that `SD_*` prefixes works with `stderr` logging:<br><div><div><br><blockquote type="cite">These prefixes are intended to be used in conjunction with stderr-based logging as implemented by systemd.<br></blockquote><br>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`?<br><br>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.<br></div></div></div></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>The description of SyslogLevelPrefix= in systemd.exec(5) also says: "This only applies to log messages written to stdout or stderr."</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>