Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2003 15:17:33 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Wes Peters <wes@softweyr.com>, Thomas Quinot <thomas@FreeBSD.ORG>, Gordon Tetlow <gordont@gnf.org>
Cc:        Thomas Quinot <thomas@FreeBSD.ORG>, arch@FreeBSD.ORG
Subject:   Re: syslog.conf syntax change (multiple program/host specifications)
Message-ID:  <p05200f15ba72fb31e177@[128.113.24.47]>
In-Reply-To: <200302141100.23529.wes@softweyr.com>
References:  <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <20030213174531.GZ83215@roark.gnf.org> <20030213184309.GA53098@melusine.cuivre.fr.eu.org> <200302141100.23529.wes@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 11:00 AM -0800 2/14/03, Wes Peters wrote:
>On Thursday 13 February 2003 10:43, Thomas Quinot wrote:
>>  Le 2003-02-13, Gordon Tetlow =E9crivait :
>>  > it should be relatively easy to implement a log roller (or steal one).
>>
>>  Yes, much code for that could be lifted from newsyslog presumably.
>
>To this end I've implemented another feature, 'N' for newsyslog.
>When the file size limit is reached, newsyslog is run with
>the  log filename as the only argument.  The size limitation
>in syslog.conf and newsyslog.conf should agree or you won't
>get what you expect.
>
>Does this seem reasonable?
>
>Can anyone suggest a better syntax that is in keeping with the
>current syslog.conf?  I am *not* going to replace the syslog.conf
>with a different format, only extend it to encompass this simple
>functionality.

I would not replace the historic syntax, but I would like to see
something "more readable" for the new options.  Instead of cool
1-letter codes, I think we could go with something a bit more
descriptive.

Something like 'max=3D256m', 'rotate=3Dnewsyslog' and 'rotate=3Drm'.
Or I guess it should be something like 'rotate=3Dtrunc', so you
don't have to deal with permissions on a newly-created log file.

I'd also suggest that newsyslog be run with some (new?) option
that says "rotate this file, even if you don't think it needs
to be rotated".  I'd expect newsyslog to know *how* to do the
rotation in this case (bzip, gzip, or alternate file-naming
conventions, and permissions on the newly-created log file).

-- 
Garance Alistair Drosehn            =3D   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05200f15ba72fb31e177>