<br><tt><font size=2>> d@davea.name</font></tt>
<br><tt><font size=2>></font></tt>
<br><tt><font size=2>> On 10/23/2012 11:23 AM, David M Chess wrote:<br>
> > We have a TimedRotatingFileHandler with when='midnight'<br>
><br>
> You give us no clue what's in this class, or how it comes up with
the<br>
> filenames used.</font></tt>
<br>
<br><tt><font size=2>Sorry if I was unclear.  This isn't my own subclass
of TimedRotatingFileHandler or anything, this is the bog-standard logging.handlers.TimedRotatingFileHandler
I'm talking about.</font></tt>
<br>
<br><tt><font size=2>So all clues about what's in the class, and how it
comes up with the filenames used, is available at</font></tt>
<br>
<br><a href=http://docs.python.org/library/logging.handlers.html#timedrotatingfilehandler><font size=3 color=blue><u>http://docs.python.org/library/logging.handlers.html#timedrotatingfilehandler</u></font></a><font size=3>
</font>
<br>
<br><tt><font size=2>:)</font></tt>
<br>
<br><tt><font size=2>The specific Python version involved here is Python
2.6.6 (r266:84297, Aug 24 2010, 18:46:32), to the extent that that matters...</font></tt>
<br>
<br><tt><font size=2>>> This works great, splitting the log information
across files by date, as <br>
>> long as the process is actually up at midnight.<br>
>><br>
>> But now the users have noticed that if the process isn't up at
midnight, <br>
>> they can end up with lines from two (or I guess potentially more)
dates in <br>
>> the same log file.<br>
>><br>
>> Is there some way to fix this, either with cleverer arguments
into the <br>
>> TimedRotatingFileHandler, or by some plausible subclassing of
it or its <br>
>> superclass?</font></tt>
<br>
<br><tt><font size=2>Tx,</font></tt>
<br><tt><font size=2>DC</font></tt>
<br>
<br><tt><font size=2>--</font></tt>