From ee6a07ca64135e54f3850e75574de0cdef424076 Mon Sep 17 00:00:00 2001 From: bujinyuan Date: Sat, 28 Feb 2026 10:03:19 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=97=A5=E5=BF=97=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8E=BB=E6=8E=89=E6=AF=AB=E7=A7=92=EF=BC=8C?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=88=B0=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 日志示例中的时间从 yyyy-MM-dd HH:mm:ss.SSS 修正为 yyyy-MM-dd HH:mm:ss Made-with: Cursor --- docs/architecture/system-architecture.md | 2 +- docs/plans/2026-02-27-phase1-foundation-and-auth.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/architecture/system-architecture.md b/docs/architecture/system-architecture.md index beb80f2..00ebff3 100644 --- a/docs/architecture/system-architecture.md +++ b/docs/architecture/system-architecture.md @@ -327,7 +327,7 @@ func TraceMiddleware() gin.HandlerFunc { ```json { "level": "info", - "ts": "2026-02-27 10:30:00.123", + "ts": "2026-02-27 10:30:00", "trace_id": "abc-123-def-456", "module": "auth", "func": "service.auth_service.Login", diff --git a/docs/plans/2026-02-27-phase1-foundation-and-auth.md b/docs/plans/2026-02-27-phase1-foundation-and-auth.md index ab388e8..3ad3637 100644 --- a/docs/plans/2026-02-27-phase1-foundation-and-auth.md +++ b/docs/plans/2026-02-27-phase1-foundation-and-auth.md @@ -203,12 +203,12 @@ type LogConfig struct { **日志输出格式示例(开发环境):** ``` -2026-02-27 10:30:00.123 INFO [abc-123] auth | service.Login | 用户登录成功 | account=zhangsan | latency=25ms +2026-02-27 10:30:00 INFO [abc-123] auth | service.Login | 用户登录成功 | account=zhangsan | latency=25ms ``` **日志输出格式示例(生产环境 JSON):** ```json -{"level":"info","ts":"2026-02-27 10:30:00.123","trace_id":"abc-123","module":"auth","func":"service.Login","msg":"用户登录成功","account":"zhangsan","latency_ms":25} +{"level":"info","ts":"2026-02-27 10:30:00","trace_id":"abc-123","module":"auth","func":"service.Login","msg":"用户登录成功","account":"zhangsan","latency_ms":25} ``` **Step 4: 创建数据库连接**