[issue14450] Log rotate cant execute in Windows. (logging module)
report at bugs.python.org
Mon Apr 2 02:16:30 CEST 2012
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
This is not a logging bug. You called basicConfig with a file name, so the file is opened using a FileHandler and with file name LOG_FILENAME. You then add a RotatingFileHandler with the same name, so the file has two handles referring to it. When the time comes to rotate, the file is still open (with the FileHandler), which is why the rename fails on Windows (though Linux allows it).
Closing as invalid.
resolution: -> invalid
status: open -> closed
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list