autogestionale/autogestionale/logging.py

14 lines
204 B
Python
Raw Normal View History

2017-09-30 01:36:10 +02:00
import logging
import logging.config
root = logging.getLogger('autogestionale')
2017-09-30 01:36:10 +02:00
def setup_logging(config):
2017-09-30 01:36:10 +02:00
logging.config.dictConfig(config)
def get_logger(name):
return root.getChild(name)