########################################
# Definition for the different objects
#
# Directories where log files are kept must already exist.
# That's why we pick /tmp.
#
# The loggers are configured to write to the log files ONLY.
# Developers may set the DESKTOP_DEBUG environment variable to
# enable stderr logging output.
########################################

[logger_root]
handlers=logfile,errorlog

[logger_access]
handlers=accesslog
qualname=access

[logger_django_auth_ldap]
handlers=accesslog
qualname=django_auth_ldap

[logger_kazoo_client]
level=INFO
handlers=errorlog
qualname=kazoo.client

[logger_djangosaml2]
level=INFO
handlers=errorlog
qualname=djangosaml2

[logger_requests_packages_urllib3_connectionpool]
level=DEBUG
handlers=errorlog
qualname=requests.packages.urllib3.connectionpool

[logger_django_db]
level=DEBUG
handlers=logfile
propogate=False
qualname=django.db.backends

[logger_boto]
level=ERROR
handlers=errorlog
qualname=boto

[handler_stderr]
class=StreamHandler
formatter=default
level=DEBUG
args=(sys.stderr,)

[handler_logfile]
class=handlers.SocketHandler
level=DEBUG
formatter=default
args=('%LOG_DIR%/hue.uds',None,)

[handler_accesslog]
class=handlers.SocketHandler
level=INFO
propagate=True
formatter=access
args=('%LOG_DIR%/hue.uds',None,)

[handler_errorlog]
class=handlers.SocketHandler
level=ERROR
formatter=default
args=('%LOG_DIR%/hue.uds',None,)

[formatter_default]
class=desktop.log.formatter.Formatter
format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
datefmt=%d/%b/%Y %H:%M:%S %z

[formatter_access]
class=desktop.log.formatter.Formatter
format=[%(asctime)s] %(levelname)-8s %(message)s
datefmt=%d/%b/%Y %H:%M:%S %z

########################################
# A summary of loggers, handlers and formatters
########################################

[loggers]
keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2,django_db,boto

[handlers]
keys=stderr,logfile,accesslog,errorlog

[formatters]
keys=default,access
