Date: Fri, 6 Jul 2001 21:54:02 -0400 From: Andrew J Caines <A.J.Caines@halplant.com> To: freebsd-stable@FreeBSD.ORG Subject: Re: Suggestion for newsyslog.c Message-ID: <20010706215402.E401@hal9000.servehttp.com> In-Reply-To: <200107070131.SAA208868@blah.incyte.com>; from bl@incyte.com on Fri, Jul 06, 2001 at 06:31:03PM -0700 References: <5.1.0.14.2.20010706204719.021f8540@216.67.14.69> <200107070131.SAA208868@blah.incyte.com>
next in thread | previous in thread | raw e-mail | index | archive | help
For the record, as someone who is paid to use Solaris, whose newsyslog is the equivalent of banging two rocks together, FreeBSD's newsyslog is fantastic. > Suggested optional feature for newsyslog.c is to enable timestamp (or > similar) in the renamed files. Since no single naming scheme is going to satisfy more than a few, how about a configurable expression incorporating date values in strftime(3), as used by date(1), incorporating file paths. For example, using %f for the log filename (conveniently not used by date), a field such as /archive/%b/%d/%f would save /var/log/messages as /archive/Jul/06/messages, whereas just %b/%d/%f would save it as /var/log/Jul/06/messages and %f.%a would save it as messages.Fri. A default of - would behave as it does now. While this sounds ambitious, I would hope that code could be swiped from date(1) and/or other utilities and incorporated without great difficulty. At a pinch, you could just call date. Since I'm no coder, I'll happily test. Oh, while you're at it, how about doing it in perl so I can slap it on my Solaris boxes? -Andrew- -- ______________________________________________________________________ | -Andrew J. Caines- Unix Systems Engineer A.J.Caines@halplant.com | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010706215402.E401>