New submission from Yuriy Taraday <yorik....@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 <rep...@bugs.python.org> <http://bugs.python.org/issue8117> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com