Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
###################################################
[loggers]
keys=root,render,converter,worker
[logger_root]
level=INFO
handlers=syslogHandler,fileHandler
[logger_render]
level=INFO
handlers=syslogHandler,fileHandler
[logger_converter]
level=INFO
handlers=syslogHandler,fileHandler
[logger_worker]
level=INFO
handlers=syslogHandler,fileHandler
####################################################
[handlers]
keys=fileHandler,syslogHandler
[handler_fileHandler]
class=handlers.WatchedFileHandler
level=DEBUG
formatter=simpleFormat
args=('log/report.log', 'D', 1)
[handler_syslogHandler]
class=handlers.SysLogHandler
level=DEBUG
formatter=simpleFormat
args=(('127.0.0.1', 5140), handlers.SysLogHandler.LOG_LOCAL0)
#####################################################
[formatters]
keys=simpleFormat
[formatter_simpleFormat]
format=%(asctime)s %(name)s:%(funcName)s %(pathname)s%(filename)s:%(lineno)s %(levelname)s - %(message)s
datefmt=%Y-%m-%d %H:%M:%S
class=logging.Formatter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.