Description
Submission type
- Bug report
- Request for enhancement (RFE)
NOTE: Do not submit anything other than bug reports or RFEs via the issue tracker!
systemd version the issue has been seen with
systemctl --version
systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD-IDN
NOTE: Do not submit bug reports about anything but the two most recently released systemd versions upstream!
Used distribution
Ubuntu 16.04
Request for enhancement
In new style daemons, the recommendation for logging is
Instead of using the syslog() call to log directly to the system syslog service, a new-style daemon may choose to simply log to standard error via fprintf(), which is then forwarded to syslog by the init system.
However, there is no direction on how to log an entry with newlines in it. If the newlines are printed normally, syslog will pick this up as independent log entries.
While it typically makes sense to have one line per log entry, there are certain cases (especially stack traces) where it makes sense to have multiple lines in a single message.
The request is to (1) either document how to do this in an appropriate location, or (2) implement the functionality to allow logging multiple lines in a single log entry when logging via stdout/stderr.