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 of
the flags field in newsyslog.conf. This would be useful on systems
that use the RFC5424 format for log files so that the rotation message
format matches the format of the other log messages. There has been
recent mention of adding an RFC5424 compliant mode to syslogd and
there are alternative system log daemons (such as rsyslogd) that
already have the capability to use that format.
The flag value chosen, "T", is arbitrary. It stems from the author's
conception that the most significant difference in the two log formats
is the timestamp used on each line of the log file. However, that
certainly is not the only difference. Suggestions for better
alternative flag values are welcome.
It should be noted that an alternative to using the flags field to
specify RFC5424 format was considered; namely, to have a newsyslog
command line option to specify the mode. That alternative was rejected
because using the flags field approach is more flexible, allowing
multiple formats of log files to be used on a single system.
The man page for newsyslog.conf is updated accordingly. While here, a
couple manlint and igor warnings in the man pages for newsyslog and
newsyslog.conf are also fixed.