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