From 10033f4a174b1d13273a9964fe8fd49a2d7dc1d2 Mon Sep 17 00:00:00 2001 From: wjqserver <114663932+WJQSERVER@users.noreply.github.com> Date: Tue, 21 Apr 2026 21:49:42 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E5=A4=8D=E5=AE=A1=E6=9F=A5?= =?UTF-8?q?=E6=84=8F=E8=A7=81=EF=BC=8C=E4=BF=AE=E6=AD=A3=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E4=B8=8E=E5=AE=9E=E7=8E=B0=E7=9A=84=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将设计文档中 logReco 改为 LogReco,与实际实现保持一致 - LogReco 字段保持公开但标记为 Deprecated --- docs/logger-migration-design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/logger-migration-design.md b/docs/logger-migration-design.md index 9684d8e..7b2e0a6 100644 --- a/docs/logger-migration-design.md +++ b/docs/logger-migration-design.md @@ -21,7 +21,7 @@ Context.Debugf/Infof... → 硬编码 c.engine.LogReco.Debugf(...) ``` Engine.logger → Logger 接口 (私有) -Engine.logReco → *reco.Logger (私有, 兼容层) +Engine.LogReco → *reco.Logger (公开, Deprecated - 保持向后兼容) Engine.GetLogger() → 返回 Logger 接口 Engine.SetLogger(Logger)→ 设置日志实现 Context.GetLogger() → 返回 Logger 接口