request for logging SyslogHandler help

Doug Fort dougfort at dougfort.com
Sun Aug 22 09:37:53 EDT 2004


Hi,

Perhaps this is as much a Unix question as a Python question.

I really like the Python logging module, and I've used it extensively,
with good results. Now I have a requirement to add a SysLogHandler,  and
it's just not working. It looks like the socket is connecting, but nothing
comes out on the log. (Fedora Core 2 /var/log/messages)

The simplest of many configurations I have tried is included below.
A FileHandler in the same config file works fine.

Does anyone have experience in this area? Do I need a  special format or 
something?

[handler_syslog]
class=handlers.SysLogHandler
level=NOTSET
formatter=verboseformat
args=()

-- 
Doug Fort, Consulting Programmer
http://www.dougfort.com




More information about the Python-list mailing list