[issue8117] TimedRotatingFileHandler doesn't rotate log file at startup.

Yuriy Taraday report at bugs.python.org
Thu Mar 11 13:34:04 CET 2010


New submission from Yuriy Taraday <yorik.sar at gmail.com>:

Screnario:
 - start logging, log something;
 - stop logging (stop application, for example);
 - start logging again after rotate interval passes.

log4j's RotatingFileAppender's behavior:
After restart, logfile is rotated if nessesary.

TimedRotatingFileHandler's behavior:
After restart do no checks on existing logs.

I thing, log4j's behavior is more intuitive. Patch adds necessary check to constructor.

----------
components: Library (Lib)
files: python-logging.diff
keywords: patch
messages: 100845
nosy: yorik.sar
severity: normal
status: open
title: TimedRotatingFileHandler doesn't rotate log file at startup.
type: behavior
Added file: http://bugs.python.org/file16524/python-logging.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8117>
_______________________________________


More information about the Python-bugs-list mailing list