newsyslog - Allow writing RFC5424 compliant rotation message.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 29 Jan 2018 00:52:57 +0000 (01:52 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 29 Jan 2018 00:52:57 +0000 (01:52 +0100)
commite7773cc7c0c94e981c77d1d2af1bf8173d36dad4
treedbbe1d0146446cb4a5cc45cf83c713bf1a9eef86
parent4c705cecf2bb28dda45fe1f8d8cde6a04489cc34
newsyslog - Allow writing RFC5424 compliant rotation message.

This modification adds the capability to newsyslog to write the
rotation message in a format that is compliant with RFC5424. This
capability is enabled on a per-log file basis through a new value
("T") in the flags field in newsyslog.conf. This is useful on systems
that use the RFC5424 format for log files so that the rotation message
format matches that of the other log messages. There has been recent
mention of adding an RFC5424 compliant mode to syslogd and at least
one alternative system log daemon (rsyslogd) that already has the
capability to use that format.

Obtained-from: FreeBSD (r318960)
usr.sbin/newsyslog/extern.h
usr.sbin/newsyslog/newsyslog.8
usr.sbin/newsyslog/newsyslog.c
usr.sbin/newsyslog/newsyslog.conf.5
usr.sbin/newsyslog/ptimes.c