[Twisted-Python] Re: Python 2.3 logging package and Twisted...

Itamar Shtull-Trauring itamar at itamarst.org
Tue Jun 24 01:03:36 EDT 2003

On Tue, 24 Jun 2003 14:35:31 +1000
Stuart Hungerford <stuart.hungerford at anu.edu.au> wrote:

>    I don't think I asked the original question very clearly. What I
>    should of asked is "has anyone using the new 2.3 logging package
>    found blocking behaviour?".  Yes would mean I'd have to handle the
>    logging with a different package.
>    As it turns out, the new logging package can listen on a socket for
>    configuration instructions and it uses threading locks to ensure
>    thread-safety of its shared data structures, so I'm proceeding with
>    caution ;-)

Locks do not imply non-blocking. From what glyph tells me logging over
sockets blocks, do not use them with Twisted unless you do the actual
write to the logging thingie in a thread.

Itamar Shtull-Trauring    http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting

More information about the Twisted-Python mailing list