Download this file
logging.conf
32 lines (25 with data), 564 Bytes
[loggers]
keys=root,routing
[handlers]
keys=fileHandler
[formatters]
keys=defaultFormatter
[logger_root]
level=DEBUG
handlers=fileHandler
[logger_routing]
level=DEBUG
handlers=fileHandler
qualname=routing
propagate=0
[handler_fileHandler]
# this works using FileHandler
class=FileHandler
# If you have Python2.6 you can use this and it will work when you use logrotate
#class=WatchedFileHandler
level=DEBUG
formatter=defaultFormatter
args=("logs/lamson.log",)
[formatter_defaultFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=