From c3c4a6305ec155248060f6a13707b5b12b3f47e8 Mon Sep 17 00:00:00 2001 From: xplainn Date: Thu, 7 Mar 2024 15:10:51 +0800 Subject: [PATCH] Update log.md --- docs/tutorials/go-zero-configuration/log.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/go-zero-configuration/log.md b/docs/tutorials/go-zero-configuration/log.md index d1b200410..19e555ec4 100644 --- a/docs/tutorials/go-zero-configuration/log.md +++ b/docs/tutorials/go-zero-configuration/log.md @@ -9,10 +9,10 @@ slug: /docs/tutorials/go-zero/configuration/log [LogConf](https://github.com/zeromicro/go-zero/blob/master/core/logx/config.go#L4) 用于我们 log 相关的配置,**logx.MustSetup**提供了我们日志的基础配置能力,简单使用方式如下: ```go -var c logc.LogConf -logc.MustSetup(c) +var c logx.LogConf +logx.MustSetup(c) -logc.Info(context.Background(), "log") +logx.Info(context.Background(), "log") // do your job ```