tags:

views:

53

answers:

1
+1  Q: 

python log manager

Hello I have several python programs that runs in parallel. I want to write a python program which will manage the programs logs, which mean that the other programs will sent log message to this program and the program will write it to the log file. Another important feature is that if one of the programs will crash, the 'manage log program' will know about it and could write it to the log file. I try to use this sample http://docs.python.org/library/logging.html#sending-and-receiving-logging-events-across-a-network but I failed.

Can anyone please help me?

A: 

This sounds like a horribly complicated scheme, frankly. I would try a simple solution first, like the Twisted logger in twisted.python.log. There is an example of how to log exceptions automagically.

Jesse Dhillon