Python logging config file
[loggers]
keys=root,app
[handlers]
keys=fileHandler,consoleHandler
[formatters]
keys=defaultFormatter
[logger_root]
level=DEBUG
handlers=fileHandler
[logger_app]
level=DEBUG
handlers=consoleHandler,fileHandler
qualname=app
propagate=0
[handler_consoleHandler]
class=StreamHandler
args=(sys.stdout,)
level=DEBUG
formatter=defaultFormatter
[handler_fileHandler]
class=FileHandler
args=('logging.log',)
level=DEBUG
formatter=defaultFormatter
[formatter_defaultFormatter]
format=%(asctime)s %(name)-12s %(levelname)-8s %(message)s