This commit is contained in:
DingZQ
2025-05-18 19:21:42 +08:00
parent 4a080bb409
commit 16991f37c3
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ def setup_logger():
logger.setLevel(logging.DEBUG) # 全局日志级别
# --- 1. 按日期分割的日志文件 Handler ---
log_file = os.path.join(log_dir, "app.log")
log_file = os.path.join(log_dir, "simulation.log")
file_handler = TimedRotatingFileHandler(
filename=log_file,
when="midnight", # 每天午夜轮转