[issue11270] logging: RotatingFileHandler crash when opening the Logfile in an Texteditor

Alexander Vrchoticky report at bugs.python.org
Mon May 2 14:12:41 CEST 2011


Alexander Vrchoticky <Alexander.Vrchoticky at gmx.at> added the comment:

Thank you for the reply. I'll look into subclassing, but I am not convinced that there is a way to fix this: The basic problem is that one viewer has a file open, and the logger would like to start a new file with the same name.

What would work, is to generate file names based on (say) the current day, as in Logfile-20110502.txt. This design avoids the problem that we're rolling over to files of the same name, but it is a different beast from RotatingFileHandler.

That said, I think this issue should be reopened: RotatingFileHandler is a part of the standard library, and Windows is a supported platform.
If the logger crashes because somebody is looking at a log file, this is a valid bug.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11270>
_______________________________________


More information about the Python-bugs-list mailing list