This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ceder
Recipients ceder
Date 2008-03-17.08:17:53
SpamBayes Score 0.2689072
Marked as misclassified No
Message-id <1205741875.35.0.669932771172.issue2316@psf.upfronthosting.co.za>
In-reply-to
Content
If nothing is logged during an interval, the TimedRotatingFileHandler
will give bad names to future log files.

The enclosed example program sets up a logger that rotates the log every
second.  It then logs a few messages with sleep of 1, 2, 4, 1 and 1
seconds between the messages.  The log files will have names that
increase with one second per log file, but the content for the last file
will be generated a different second.

An example run produced the message

  2008-03-17 09:16:06: 1 sec later

in a log file named badlogdir/logfile.2008-03-17_09-16-02.

This problem was likely introduced in revision 42066.  The root cause is
that self.rolloverAt is increased by self.interval in doRollover - but
if nothing was logged for a while, it should be increased by a multiple
of self.interval.
History
Date User Action Args
2008-03-17 08:17:55cedersetspambayes_score: 0.268907 -> 0.2689072
recipients: + ceder
2008-03-17 08:17:55cedersetspambayes_score: 0.268907 -> 0.268907
messageid: <1205741875.35.0.669932771172.issue2316@psf.upfronthosting.co.za>
2008-03-17 08:17:54cederlinkissue2316 messages
2008-03-17 08:17:53cedercreate