macao-pos/pos/logging.py
2017-03-21 11:26:25 +01:00

16 lines
228 B
Python

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)