[ python-Bugs-1553496 ] logging.handlers.RotatingFileHandler - inconsistent mode

SourceForge.net noreply at sourceforge.net
Wed Sep 6 19:32:14 CEST 2006


Bugs item #1553496, was opened at 2006-09-06 12:03
Message generated for change (Settings changed) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1553496&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Walker Hale (walkerh)
>Assigned to: Vinay Sajip (vsajip)
Summary: logging.handlers.RotatingFileHandler - inconsistent mode

Initial Comment:
RotatingFileHandler does not remember the mode used to
open files. By default it will initially open its file
with 'a', but client code may set this to something
else. After rollover, the mode for the new file changes
to 'w'. The behavior is inconsistent with the interface.

At the very least the docstring for __init__ should
change to show that the mode parameter is not respected
after rollover.

This affects previous versions.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1553496&group_id=5470


More information about the Python-bugs-list mailing list