Download this file

test_logging.conf    35 lines (27 with data), 546 Bytes

[loggers]
keys=root,routing

[handlers]
keys=stdoutHandler,stderrHandler

[formatters]
keys=defaultFormatter

[logger_root]
level=DEBUG
handlers=stdoutHandler

[logger_routing]
level=DEBUG
handlers=stderrHandler
qualname=routing
propagate=0

[handler_stdoutHandler]
class=StreamHandler
level=DEBUG
formatter=defaultFormatter
args=(sys.stdout,)

[handler_stderrHandler]
class=StreamHandler
level=DEBUG
formatter=defaultFormatter
args=(sys.stderr,)

[formatter_defaultFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=