This commit is contained in:
HuangHai
2026-01-20 08:21:08 +08:00
parent 34501faafb
commit a5e8da0f9e
11 changed files with 1044 additions and 1215 deletions

View File

@@ -19,7 +19,7 @@ def setup_api_logger():
return logger
log_dir = os.path.join(project_root, "Logs")
os.makedirs(log_dir, exist_ok=True)
log_file = os.path.join(log_dir, "YLT_Analytics_Api.log")
log_file = os.path.join(log_dir, "Start.log")
file_handler = logging.FileHandler(log_file, encoding="utf-8")
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
file_handler.setFormatter(formatter)