Source code for Logger.Logger
import codecs
import json
import logging
import logging.config
[docs]def setup_logger():
"""
:Description:
Setup logger based on JSON from LoggerConfig.json.
"""
config_file = "Logger/LoggerConfig.json"
with codecs.open(config_file, "r", encoding="utf-8") as cf:
config = json.load(cf)
logging.config.dictConfig(config["logging"])