Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-23 Thread Vinay Sajip
On 9 Feb, 14:14, [EMAIL PROTECTED] wrote: > Right. Check out the logrotate facility on your system. This can be used together with the WatchedFileHandler recently checked into SVN trunk - this (Unix/Linux-only) handler checks to see if the dev or inode have changed, and if they have (because of r

Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-09 Thread skip
>> 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

Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-09 Thread Chris Shenton
"Vinay Sajip" <[EMAIL PROTECTED]> 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

Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-09 Thread Vinay Sajip
On 1 Feb, 05:32, Chris Shenton <[EMAIL PROTECTED]> wrote: > I set this up 3 days ago and have not seen any of the logs I've > created this way being rotated. I expected them to rotate every > midnight. I'm calling the code that uses this logger many times, each > a separate run, if that matters.

TimedRotatingFileHandler() isn't rotating at midnight?

2007-01-31 Thread Chris Shenton
I set this up 3 days ago and have not seen any of the logs I've created this way being rotated. I expected them to rotate every midnight. I'm calling the code that uses this logger many times, each a separate run, if that matters. Am I doing something stupid? I can't find anything on google and