[Skytools-users] Proper way to rotate logs for replay and ticker daemons?
Eric Bjorndahl
eric at netmbx.com
Sat Aug 1 17:32:53 UTC 2009
Thanks, looks like it is working properly. Just checked the log files and it
seems the default log_size value is 10MB.
Eric
-----Original Message-----
From: Marko Kreen [mailto:markokr at gmail.com]
Sent: Saturday, August 01, 2009 10:25 AM
To: Eric Bjorndahl
Cc: skytools-users at pgfoundry.org
Subject: Re: [Skytools-users] Proper way to rotate logs for replay and
ticker daemons?
On 7/25/09, Eric Bjorndahl <eric at netmbx.com> wrote:
> Apologies if this sounds like a basic question, but I've searched all over
> and haven't been able to find an answer.
>
> What's the best way to rotate log files generated by the ticker and replay
> processes?
>
>
>
> For the replay process, I tried issuing a "-r" (for reload config) command
> after moving the log file using logrotate, but it still writes to the same
> log file, instead of writing to a new log.
Skytools uses Pythons RotatingFileHandler logger, which rotates
logs based on size. You can use config values log_count and log_size
to tune it.
Seems they are undocumented...
--
marko
More information about the Skytools-users
mailing list