From 5afcf4340b9382fe20f570c11a686c72d2c1a57a Mon Sep 17 00:00:00 2001 From: zk Date: Tue, 14 Apr 2026 12:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=97=B6=E9=97=B4=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=AF=AB=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/logger.py b/app/core/logger.py index 46e0a00..8ce80c3 100644 --- a/app/core/logger.py +++ b/app/core/logger.py @@ -12,7 +12,7 @@ _log_dir = os.path.join(_root_dir, "logs") # 控制台日志格式 _CONSOLE_FORMAT = ( - "{time:YYYYMMDD HH:mm:ss} | " + "{time:YYYYMMDD HH:mm:ss.SSS} | " "{process.name}:{process.id} | " "{extra[request_id]} | " "{extra[user_id]} | " @@ -24,7 +24,7 @@ _CONSOLE_FORMAT = ( # 文件日志格式 _FILE_FORMAT = ( - "{time:YYYYMMDD HH:mm:ss} - " + "{time:YYYYMMDD HH:mm:ss.SSS} - " "{process.name}:{process.id} | " "{extra[request_id]} | " "{extra[user_id]} | "