M
michael
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("logging.cfg")
logger = logging.getLogger ("syslog")
logger.info('While this is just chatty')
-------------------------------------------
"logging.cfg"
[syslog]
class=handlers.SysLogHandler
level=ERROR
formatters=form01
facility=LOG_LOCAL0
priority = LOG_INFO
[formatters]
keys=form01
[formatter_form01]
format=%(levelname)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("logging.cfg")
logger = logging.getLogger ("syslog")
logger.info('While this is just chatty')
-------------------------------------------
"logging.cfg"
[syslog]
class=handlers.SysLogHandler
level=ERROR
formatters=form01
facility=LOG_LOCAL0
priority = LOG_INFO
[formatters]
keys=form01
[formatter_form01]
format=%(levelname)s %(message)s
-------------------------------------------
"/etc/syslog.conf"
local0.*;local0.!=debug /var/log/local.log
local0.=debug /var/log/local-d.log
Kind regards
Michael