User Tools

Site Tools


programming:python:logging_syslog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

programming:python:logging_syslog [2008/06/03 20:17] – created crustymonkeyprogramming:python:logging_syslog [2008/06/05 15:21] (current) crustymonkey
Line 2: Line 2:
 I was poking around in the python documentation the other day and discovered the [[http://docs.python.org/lib/module-logging.html|logging module]].  I have to say that it is quite the cool module.  It takes all the work out of putting together a logger, and it does it really well.  I perused the documentation and checked out some examples, but I couldn't quite get it figured out well enough to work with it's ''SysLogHandler'', which is usually my preferred method of logging.  I did, however, find this nice little example that works perfectly: I was poking around in the python documentation the other day and discovered the [[http://docs.python.org/lib/module-logging.html|logging module]].  I have to say that it is quite the cool module.  It takes all the work out of putting together a logger, and it does it really well.  I perused the documentation and checked out some examples, but I couldn't quite get it figured out well enough to work with it's ''SysLogHandler'', which is usually my preferred method of logging.  I did, however, find this nice little example that works perfectly:
  
-http://docs.python.org/lib/module-logging.html+http://scottbarnham.com/blog/2008/01/01/sysloghandler-not-writing-to-syslog-with-python-logging/
programming/python/logging_syslog.1212524255.txt.gz · Last modified: 2008/06/03 20:17 by crustymonkey