Write by logging.FileHandler to one file by many processess

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Oct 23 21:54:12 CEST 2007


En Tue, 23 Oct 2007 05:08:11 -0300, Vinay Sajip <vinay_sajip at yahoo.co.uk>  
escribi�:

> On Oct 18, 4:08 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
> wrote:
>> Yes, output from several processes comes horribly mixed...
>> I've avoided it using separate log files for each process; but if that's
>> not possible, one could try using syslog or a SocketHandler and a  
>> separate
>> listening process.
>
> The Python logging docs even contain a working example of such a
> listening process (receiver):
>
> http://www.python.org/doc/current/lib/network-logging.html

Great!

-- 
Gabriel Genellina




More information about the Python-list mailing list