macao-pos/pos/logging.py

16 lines
228 B
Python
Raw Permalink Normal View History

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