[loggers]
keys=root,pika,py,requests,neutronclient,celery,yygame_debug

[logger_root]
level=DEBUG
handlers=console,file,sentry

[logger_neutronclient]
level=WARNING
handlers=console,file,sentry
propagate=0
qualname=neutronclient

[logger_celery]
level=INFO
handlers=console,file_celery,sentry
qualname=celery
propagate=0

[logger_yygame_debug]
level=DEBUG
handlers=console,file_yygame_debug,sentry
propagate=0
qualname=yygame.debug

[logger_pika]
handlers=console,file
level=CRITICAL
propagate=0
qualname=pika

[logger_requests]
handlers=console,file
level=WARNING
propagate=0
qualname=requests

[logger_py]
handlers=file
level=WARNING
propagate=0
qualname=py

[handlers]
keys=console,file,file_yygame_debug,file_celery,file_crit,sentry

[handler_sentry]
level=ERROR
formatter=long
class=NullHandler
args=()
# class=raven.handlers.logging.SentryHandler
# args=('FIXME add sentry dsn here',)

[handler_console]
level=DEBUG
formatter=simple
class=StreamHandler
args=()

[handler_file]
level=DEBUG
formatter=long
class=FileHandler
args=('/var/log/{{name}}/{{name}}.log', 'a', 'utf-8', True)

[handler_file_celery]
level=DEBUG
formatter=long
class=FileHandler
args=('/var/log/{{name}}/celery.log', 'a', 'utf-8', True)

[handler_file_yygame_debug]
level=DEBUG
formatter=long
class=FileHandler
args=('/var/log/{{name}}/yygame-debug.log', 'a', 'utf-8', True)

[handler_file_crit]
level=CRITICAL
formatter=long
class=FileHandler
args=('/var/log/{{name}}/error.log', 'a', 'utf-8', True)

[formatters]
keys=simple,long,ts_seperated_message

[formatter_ts_seperated_message]
format===== %(asctime)s ====
  %(message)s

[formatter_simple]
format=%(asctime)s %(name)s %(levelname)-8s %(message)s

[formatter_long]
format=%(asctime)s %(name)s %(module)s %(process)d %(levelname)-8s %(message)s
