By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,922 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,922 IT Pros & Developers. It's quick & easy.

exceptions from logging on Windows

P: n/a
Hi,

I experience several exceptions from python's logging system when using the
rollover feature on Windows.

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

Googeling revealed that this has been experienced by others, too, however no
workaround or solution has been provided. Is this the latest status on this
topic? Do I miss something?

Thanks for help,

Oliver

Sep 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I ended up monkey-patching doRollover to do a number of retries before
giving up. (In our case the failures is due to our log browser
happening to read the latest changes when logging wants to rollover)

(Actually, I implemented a simple QueueHandler and do all file
operations from a different logging thread)

Sep 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.