Russell Nelson <[EMAIL PROTECTED]> writes:

> Yes, wouldn't it be nice if cyclog had another parameter, like this:

> cyclog: usage: cyclog [ -ssize ] [ -nnum ] [ -mmargin ] dir program

> where ``program'' gets called with an additional argument which is the
> name of the file cyclog has just ceased writing to.

It certainly would.  I'd use that myself.

>> We could then have a cron job cleaning this directory to remove log
>> files more than x days old. This way, cyclog can rotate logs as quickly
>> as it likes, but we control when they are removed.

> Of course, that breaks cyclog's guarantee of never filling your disk.

There are cases where I'd rather fill the disk than lose logs.  And
predictable log rotation is actually something I'd rather like to have for
a lot of things.  I've wanted cyclog to be able to rotate on a time
interval rather than on a size limit for a while, but I do realize that
it's unlikely to happen since it's rather far away from the intended
purpose of cyclog.

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>

Reply via email to