[issue4749] Issue with RotatingFileHandler logging handler on Windows

Neyro report at bugs.python.org
Fri Mar 13 11:19:18 CET 2009


Neyro <neyro.gilar at gmail.com> added the comment:

I have the same problem with a program I'm writing.
The attached script is made using parts of it's code.
The logger is set up using a configuration file.

By the way, the error is:

Traceback (most recent call last):
  File "C:\Python26\lib\logging\handlers.py", line 74, in emit
    if self.shouldRollover(record):
  File "C:\Python26\lib\logging\handlers.py", line 146, in shouldRollover
    self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
ValueError: I/O operation on closed file

----------
nosy: +neyro
versions: +Python 2.6
Added file: http://bugs.python.org/file13315/loggertest.zip

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


More information about the Python-bugs-list mailing list