J7RSYILECL / src /__init__.py
puzan789's picture
initial commit
fe93dd0
raw
history blame contribute delete
348 Bytes
"""
Created By: ishwor subedi
Date: 2024-07-31
"""
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)