16 lines
229 B
Python
16 lines
229 B
Python
|
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)
|