Project / core /__init__.py
puzan789's picture
updated
ad87194
raw
history blame
298 Bytes
import logging.config
import yaml
import os
if os.path.exists("logs"):
pass
else:
os.makedirs("logs")
log_config_path = os.path.join(os.getcwd(), "logging_config.yaml")
with open(log_config_path, 'r') as file:
config = yaml.safe_load(file.read())
logging.config.dictConfig(config)