Spaces:
Sleeping
Sleeping
File size: 434 Bytes
11acf19 40425a0 11acf19 2cec096 11acf19 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import logging
import os
from datetime import datetime
LOG_FILE = f"{datetime.now().strftime('%m_%d_%Y_%H_%M_%S')}.log"
logs_path = os.path.join(os.getcwd(),"logs",LOG_FILE)
# os.makedirs(logs_path,exist_ok=True)
LOG_FILE_PATH = os.path.join(logs_path,LOG_FILE)
# logging.basicConfig(
# filename=LOG_FILE_PATH,
# format="[ %(asctime)s ] %(lineno)d %(name)s - %(levelname)s - %(message)s ",
# level=logging.INFO
# )
|