TimedRotatingFileHandler() isn't rotating at midnight?
skip at pobox.com
skip at pobox.com
Fri Feb 9 09:14:45 EST 2007
>> Rotating should happen when the logging process creates the handler
>> before midnight and makes a logging call destined for that handler
>> after midnight.
Chris> Ah, then maybe I'm expecting the wrong thing. The python code is
Chris> invoked from cron every 10 minutes or so, it's not long-running.
Chris> Each time it opens the same log file. Sounds like this isn't
Chris> going to do what I want.
Right. Check out the logrotate facility on your system.
Skip
More information about the Python-list
mailing list