]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: mention that stdout logging works the same as stderr logging
authorLennart Poettering <lennart@poettering.net>
Tue, 31 Mar 2020 13:59:29 +0000 (15:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Mar 2020 22:15:41 +0000 (00:15 +0200)
Apparently people wondered about that:

https://lists.freedesktop.org/archives/systemd-devel/2020-March/044091.html

man/sd-daemon.xml

index 84deda188d22fa17d7a738a44e1ab3690693c409..64ed5f3779c73ac71a87d7b4a552b88f13e4b62f 100644 (file)
 #define SD_INFO    "&lt;6&gt;"  /* informational */
 #define SD_DEBUG   "&lt;7&gt;"  /* debug-level messages */</programlisting>
 
-    <para>These prefixes are intended to be used in conjunction with
-    stderr-based logging as implemented by systemd. If a systemd
-    service definition file is configured with
-    <varname>StandardError=journal</varname>,
-    <varname>StandardError=syslog</varname> or
-    <varname>StandardError=kmsg</varname>, these prefixes can be used
-    to encode a log level in lines printed. This is similar to the
-    kernel <function>printk()</function>-style logging. See
-    <citerefentry><refentrytitle>klogctl</refentrytitle><manvolnum>2</manvolnum></citerefentry>
-    for more information.</para>
+    <para>These prefixes are intended to be used in conjunction with stderr-based logging (or stdout-based
+    logging) as implemented by systemd. If a systemd service definition file is configured with
+    <varname>StandardError=journal</varname>, <varname>StandardError=syslog</varname> or
+    <varname>StandardError=kmsg</varname> (and similar with <varname>StandardOutput=</varname>), these
+    prefixes can be used to encode a log level in lines printed. This is similar to the kernel
+    <function>printk()</function>-style logging. See
+    <citerefentry><refentrytitle>klogctl</refentrytitle><manvolnum>2</manvolnum></citerefentry> for more
+    information.</para>
 
     <para>The log levels are identical to
     <citerefentry project='man-pages'><refentrytitle>syslog</refentrytitle><manvolnum>3</manvolnum></citerefentry>'s