autogestionale/autogestionale/logging.py

14 lines
204 B
Python

import logging
import logging.config
root = logging.getLogger('autogestionale')
def setup_logging(config):
logging.config.dictConfig(config)
def get_logger(name):
return root.getChild(name)