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

Vinay Sajip report at bugs.python.org
Mon May 2 02:05:59 CEST 2011


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

There have been no widespread reports of rotating file handlers being unusable under Windows. This is a Windows limitation that generally needs to be worked around, it's not limited to logging applications only.

It's possible to copy a set of rotated files to another location for more leisurely examination, though that could also cause failures depending on how the files are opened for copying.

If this option is not open to you, you can still use a rotating file handler base class, but just reimplement the doRollover() method to implement any other strategy you like of dealing with files held open by other processes. This was suggested in an earlier response - is there any reason it wouldn't work for you?

----------

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


More information about the Python-bugs-list mailing list