2017-09-30 01:36:10 +02:00
|
|
|
import logging
|
|
|
|
import logging.config
|
|
|
|
|
|
|
|
|
2017-10-02 00:47:22 +02:00
|
|
|
root = logging.getLogger('autogestionale')
|
2017-09-30 01:36:10 +02:00
|
|
|
|
|
|
|
|
2017-10-02 00:47:22 +02:00
|
|
|
def setup_logging(config):
|
2017-09-30 01:36:10 +02:00
|
|
|
logging.config.dictConfig(config)
|
|
|
|
|
|
|
|
|
|
|
|
def get_logger(name):
|
|
|
|
return root.getChild(name)
|