Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

João Paulo Farias <jpaulofar...@gmail.com> 
added the comment:

> Ok.. I was hoping for a solution that did not involve running a 
> separate process just for logging.

It needn't *just* be for logging - as long as it doesn't spawn any child 
processes. And the need to run a separate process stems from the fact that 
there's no reliable cross-platform way (in the Python stdlib) of synchronising 
access to a resource (such as a file) from multiple processes.

There are other solutions, no doubt, but the separate process will probably be 
the quickest and easiest to implement.

> Also, I noticed that I get 
> the problem even before spawning any 
> processes.

If you're sure about this, and not running into any of the other gotchas 
mentioned in the thread, then please post a small script which succinctly 
demonstrates the problem, and I'll look at it. Numerous people have posted 
problem scripts in this thread (e.g. Neyro, Robert Cronk, Frans) but the 
problem has generally turned out to be not related to logging specifically, but 
more generically handle inheritance, differences/limitations in implementations 
of subprocess under Windows etc.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4749>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to