Message32480
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. |
|
Date |
User |
Action |
Args |
2007-08-23 14:58:30 | admin | link | issue1752539 messages |
2007-08-23 14:58:30 | admin | create | |
|