macao-pos/pos/logging.py

14 lines
193 B
Python
Raw Normal View History

2017-03-21 11:26:25 +01:00
import logging
import logging.config
root = logging.getLogger('pos')
2017-03-21 11:26:25 +01:00
def setup_logging(config):
2017-03-21 11:26:25 +01:00
logging.config.dictConfig(config)
def get_logger(name):
return root.getChild(name)