Spaces:
Sleeping
Sleeping
File size: 348 Bytes
b368e21 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
"""
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)
|