Write by logging.FileHandler to one file by many processess

Vinay Sajip vinay_sajip at yahoo.co.uk
Tue Oct 23 04:08:11 EDT 2007


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

Regards,

Vinay Sajip




More information about the Python-list mailing list