On Mon, Sep 03, 2001 at 08:26:42AM -0000, paul@... wrote:
> Has anyone looked into "circular logging" with Webware? I've heard that on
> Linux, at least, there are certain system logging mechanisms which offer such
> capabilities provided one uses the API concerned. From what I've been made
> aware of, circular logs only keep information for a certain period of time
> through the oldest information being continuously overwritten. This strategy
> should avoid the continual growth of log files which end up filling the
> filesystem because no-one remembered to check and delete them. ;-)
There's a program 'logrotate' which does this. According to the Debian
package, "It was downloaded from your friendly redhat mirror.
Upstream authors are various redhat people. Copyright: GPL."
It runs as a daily cron job and has a config file that specifies which
files should be rotated, how many levels, whether to compress, etc.
There's an "include" directive to specify a directory containing other
config files; this gives a place to put package-specific config files.
-Mike (Iron) Orr, iron@... (if mail problems: mso@...)
http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol