Spaces:
Sleeping
Sleeping
""" | |
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) | |