TimedRotatingFileHandler() isn't rotating at midnight?
Chris Shenton
chris at shenton.org
Fri Feb 9 09:07:40 EST 2007
"Vinay Sajip" <vinay_sajip at yahoo.co.uk> writes:
> It might. I assume you have a long-running process which runs past
> midnight - that's the scenario that TimedRotatingFileHandler is meant
> for. Can you post a complete minimal example which shows the problem?
> Rotating should happen when the logging process creates the handler
> before midnight and makes a logging call destined for that handler
> after midnight.
Ah, then maybe I'm expecting the wrong thing. The python code is
invoked from cron every 10 minutes or so, it's not long-running.
Each time it opens the same log file. Sounds like this isn't going to
do what I want.
Thanks for the clarification.
More information about the Python-list
mailing list