2014-11-06 15:01:39 +01:00
|
|
|
[loggers]
|
|
|
|
keys=root,meshenger
|
|
|
|
|
|
|
|
[handlers]
|
|
|
|
keys=consoleHandler, fileHandler
|
|
|
|
|
|
|
|
[formatters]
|
|
|
|
keys=simpleFormatter
|
|
|
|
|
|
|
|
[logger_root]
|
|
|
|
level=DEBUG
|
|
|
|
handlers=consoleHandler
|
|
|
|
|
|
|
|
[logger_meshenger]
|
|
|
|
level=DEBUG
|
|
|
|
handlers=consoleHandler, fileHandler
|
|
|
|
qualname=meshenger
|
|
|
|
propagate=0
|
|
|
|
|
|
|
|
[handler_fileHandler]
|
|
|
|
class=handlers.RotatingFileHandler
|
2014-11-06 15:41:35 +01:00
|
|
|
level=INFO
|
2014-11-06 15:01:39 +01:00
|
|
|
args=('log/meshenger.log','a','maxBytes=10000','backupCount=5')
|
|
|
|
formatter=simpleFormatter
|
|
|
|
|
|
|
|
[handler_consoleHandler]
|
|
|
|
class=StreamHandler
|
|
|
|
level=DEBUG
|
|
|
|
formatter=simpleFormatter
|
|
|
|
args=(sys.stdout,)
|
|
|
|
|
|
|
|
[formatter_simpleFormatter]
|
|
|
|
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
|
|
|
|
datefmt=
|