phi/src/phi/logging.py

16 lines
229 B
Python
Raw Normal View History

2017-12-16 23:03:03 +01:00
from logging import getLogger
from logging.config import dictConfig
from phi.config import NAME
root = getLogger(NAME)
def setup_logging(config):
dictConfig(config)
def get_logger(name):
return root.getChild(name)