[formatters]
keys=detailed,simple

[handlers]
keys=console,syslog,smtp

[loggers]
keys=root,warnings,asyncio,gunicorn,aiohttp,api_hour,hello

[formatter_simple]
format=%(name)s:%(levelname)s %(asctime)s %(module)s.py => %(message)s

[formatter_detailed]
format=%(name)s:%(levelname)s %(asctime)s %(module)s.py:%(lineno)d => %(message)s

[handler_console]
class=StreamHandler
args=(sys.stdout,)
formatter=detailed

[handler_syslog]
class=handlers.SysLogHandler
args=('/dev/log', handlers.SysLogHandler.LOG_LOCAL6)
formatter=detailed

[handler_smtp]
class=handlers.SMTPHandler
level=WARN
args=('127.0.0.1', 'gmludo@gmail.com', ['gmludo@gmail.com'], 'hello error on server: hello')
formatter=detailed

[logger_root]
level=ERROR
handlers=console

# You can add smtp in handlers list to receive e-mail alerts
[logger_warnings]
level=WARN
handlers=console
qualname=py.warnings
propagate=0

[logger_asyncio]
level=WARN
handlers=console
qualname=asyncio
propagate=0

[logger_gunicorn]
level=WARN
handlers=console
qualname=gunicorn
propagate=0

[logger_aiohttp]
level=WARN
handlers=console
qualname=aiohttp
propagate=0

[logger_api_hour]
level=WARN
handlers=console
qualname=api_hour
propagate=0

[logger_hello]
level=WARN
handlers=console
qualname=hello
propagate=0
