[New-bugs-announce] [issue5013] Problems with delay parm of logging.handlers.RotatingFileHandler
Fons Dijkstra
report at bugs.python.org
Tue Jan 20 17:21:22 CET 2009
New submission from Fons Dijkstra <fdij at xs4all.nl>:
When you set the delay parameter of the
logging.handlers.RotatingFileHandler.__init__() function to True, two
things go wrong:
1) A previously set formatter is reset (to None) upon lazy creating the
StreamHandler. That means in practice that you always will have the
default formatter which just formats the message.
2) Upon a roll-over, the delay parm does not seem to be used anymore as,
even if there are no records to log, the new current logfile is always
created.
----------
components: Library (Lib)
messages: 80258
nosy: pycurry
severity: normal
status: open
title: Problems with delay parm of logging.handlers.RotatingFileHandler
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5013>
_______________________________________
More information about the New-bugs-announce
mailing list