[logging] Adds logging alias for easier imports.

This commit is contained in:
Romain Dorgueil
2017-06-11 09:50:20 +02:00
parent 285f8e230c
commit 2b8397f32e

View File

@ -70,6 +70,9 @@ def set_level(level):
def get_logger(name='bonobo'):
return logging.getLogger(name)
# Compatibility with python logging
getLogger = get_logger
# Setup formating and level.
setup(level=settings.LOGGING_LEVEL)