Hi there,
I am stuck while trying to use the logging facilities. Its not logging
:-) Can somebody point me to a solution ?
The following snipplets are used
-------------------------------------------
"crap.py"
logging.config. fileConfig("log ging.cfg")
logger = logging.getLogg er ("syslog")
logger.info('Wh ile this is just chatty')
-------------------------------------------
"logging.cf g"
[syslog]
class=handlers. SysLogHandler
level=ERROR
formatters=form 01
facility=LOG_LO CAL0
priority = LOG_INFO
[formatters]
keys=form01
[formatter_form0 1]
format=%(leveln ame)s %(message)s
-------------------------------------------
"/etc/syslog.conf"
local0.*;local0 .!=debug /var/log/local.log
local0.=debug /var/log/local-d.log
Kind regards
Michael
I am stuck while trying to use the logging facilities. Its not logging
:-) Can somebody point me to a solution ?
The following snipplets are used
-------------------------------------------
"crap.py"
logging.config. fileConfig("log ging.cfg")
logger = logging.getLogg er ("syslog")
logger.info('Wh ile this is just chatty')
-------------------------------------------
"logging.cf g"
[syslog]
class=handlers. SysLogHandler
level=ERROR
formatters=form 01
facility=LOG_LO CAL0
priority = LOG_INFO
[formatters]
keys=form01
[formatter_form0 1]
format=%(leveln ame)s %(message)s
-------------------------------------------
"/etc/syslog.conf"
local0.*;local0 .!=debug /var/log/local.log
local0.=debug /var/log/local-d.log
Kind regards
Michael
Comment