git: newsyslog - Allow writing RFC5424 compliant rotation message.

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Sun Jan 28 17:16:14 PST 2018


commit e7773cc7c0c94e981c77d1d2af1bf8173d36dad4
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Mon Jan 29 01:52:57 2018 +0100

    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)

Summary of changes:
 usr.sbin/newsyslog/extern.h         |  2 ++
 usr.sbin/newsyslog/newsyslog.8      |  3 +-
 usr.sbin/newsyslog/newsyslog.c      | 57 ++++++++++++++++++++++++------
 usr.sbin/newsyslog/newsyslog.conf.5 | 18 +++++++++-
 usr.sbin/newsyslog/ptimes.c         | 69 +++++++++++++++++++++++++++++++++++++
 5 files changed, 136 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e7773cc7c0c94e981c77d1d2af1bf8173d36dad4


-- 
DragonFly BSD source repository



More information about the Commits mailing list