Example of how to use logging for both screen and file

Vinay Sajip vinay_sajip at yahoo.co.uk
Wed Oct 27 11:20:21 EDT 2004


The SyslogHandler in the logging package uses UDP to
communicate with the syslog daemon. It's hard to tell
why events may not be showing up in the syslog - e.g.
network or firewall issues may prevent the packets
reaching the server. AFAIK, there is no problem with
the SyslogHandler. If in doubt, write a small Python
script to format a packet yourself and send it to
syslog directly (i.e. not via logging). If that works,
it points to a problem in logging. If it doesn't, it
points to a problem in your network setup (or your
test script).

Regards,


Vinay Sajip


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com



More information about the Python-list mailing list