Skip to content

Commit

Permalink
Update log.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xplainn authored Mar 7, 2024
1 parent 7300964 commit c3c4a63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorials/go-zero-configuration/log.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit c3c4a63

Please sign in to comment.