[ python-Bugs-1752539 ] RotatingFileHandler.doRollover behave wrong vs. log4j's
SourceForge.net
noreply at sourceforge.net
Fri Jul 13 05:47:40 CEST 2007
Bugs item #1752539, was opened at 2007-07-12 03:34
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1752539&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
Private: No
Submitted By: Jin Qing (jinq0123)
>Assigned to: Vinay Sajip (vsajip)
Summary: RotatingFileHandler.doRollover behave wrong vs. log4j's
Initial Comment:
RotatingFileHandler.doRollover() will raise exception on rename() and cause all the subsequent log messages lost.
But log4j is better. It ignore the rename() error and reset the log file.
I read "[ 979252 ] Trap OSError when calling RotatingFileHandler.doRollover ( https://sourceforge.net/tracker/index.php?func=detail&aid=979252&group_id=5470&atid=105470 )", and think David London (groodude)'s solution is closer to log4j.
At least, python logging implementation should follow log4j's behavior, or improve it, such as only discard the current one message.
logging should be easy to use.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-07-12 20:47
Message:
Logged In: YES
user_id=33168
Originator: NO
Vinay, could you take a look? Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1752539&group_id=5470
More information about the Python-bugs-list
mailing list