SysLogHandler is drivin me nuts PEBCAC
michael
michael.bierenfeld at web.de
Fri Nov 26 05:07:48 EST 2004
Vinay Sajip <vinay_sajip at red-dove.com> wrote in message news:<mailman.6782.1101394046.5135.python-list at python.org>...
> The config file appears incomplete - can you post the whole of it (if
> it's not too big)? I would have expected to see lines like
Yep it was incomplete heres the complete config as it has to be
[loggers]
keys=root,syslog
[handlers]
keys=syslog,file,stdout
[logger_syslog]
qualname=syslog
level=INFO
handlers=syslog
[logger_root]
qualname=root
level=INFO
handlers=stdout
[handler_syslog]
class=handlers.SysLogHandler
level=ERROR
formatter=syslog
args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
[handler_stdout]
class=StreamHandler
level=INFO
formatter=stdout
args=(sys.stdout,)
[handler_file]
class=FileHandler
level=INFO
formatter=stdout
args=('python.log', 'w')
[formatters]
keys=syslog,stdout
[formatter_syslog]
format=%(module)s %(levelname)s %(message)s
[formatter_stdout]
format=%(module)s %(asctime)s %(levelname)s %(message)s
Thanks for the help
Michael
More information about the Python-list
mailing list