470,848 Members | 2,215 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Re: RotatingFileHandler - ShouldRollover error

En Wed, 16 Apr 2008 10:50:44 -0300, <tp****@loftware.comescribió:
I am using the RotatingFileHandler logger with Python 2.5 on Windows and
I am getting an error on the rollover. When the log file gets close to
the size where it needs to rollover, I start getting the following error
for every log message. Does anyone have a solution to this problem?

Traceback (most recent call last):
File "C:\Python25\Lib\logging\handlers.py", line 73, in emit
if self.shouldRollover(record):
File "C:\Python25\Lib\logging\handlers.py", line 147, in shouldRollover
self.stream.seek(0, 2) #due to non-posix-compliant Windows feature
ValueError: I/O operation on closed file
There are some fixes in svn - you may try using the current sources from

Gabriel Genellina

Jun 27 '08 #1
0 845

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Kamus of Kadizhar | last post: by
12 posts views Thread by Rob Cranfill | last post: by
reply views Thread by new pip | last post: by
2 posts views Thread by Gregory | last post: by
7 posts views Thread by flupke | last post: by
reply views Thread by Roopesh | last post: by
3 posts views Thread by nicholas.petrella | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.