Date: Sat, 11 Aug 2007 16:39:42 +0200 From: Dirk GOUDERS <gouders@et.bocholt.fh-ge.de> To: "Joost Bekkers" <joost@jodocus.org>, "David Wolfskill" <david@catwhisker.org> Cc: FreeBSD-hackers@freebsd.org Subject: Re: [PATCH] newsyslog - don't compress first log file Message-ID: <200708111439.l7BEdgAr045640@sora.hank.home> In-Reply-To: <1064.192.168.100.227.1186841549.squirrel@jodocus.org> References: <46BC49DB.8060509@latnet.lv> <20070810161318.GX77008@bunrab.catwhisker.org> <1064.192.168.100.227.1186841549.squirrel@jodocus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> We could extend the 'count' field to accept 'N+M'. N being the number of > plain log files and M the number of compressed ones. > > This would also negate the need for a new flag. It could also be done with a numerical flag "n" where n is a number that specifies the extension of the logfile up to which no compression should be done. An example configfile entry for 90 rotate logs and 40 uncompressed ones would look as follows: # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] /var/log/example.log 644 89 100 * J39 I already implemented that approach and am currently testing it. When finished, I will post a patch so that David can try it, but that will not happen before Sunday, because I am a little bit busy with other things. Most of the changes handle the compressed and uncompressed logs and it will be little work to modify it for the N+M count-field approach. Dirk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708111439.l7BEdgAr045640>