From 4acee6927bb4775c14d53645aaca092ec1f6d0c1 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 7 Jul 2024 15:16:12 +0800 Subject: [PATCH] chore: coding style --- docs/tutorials/log/log.md | 3 ++- .../current/tutorials/log/log.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/log/log.md b/docs/tutorials/log/log.md index 64d5acaf..83949d7a 100644 --- a/docs/tutorials/log/log.md +++ b/docs/tutorials/log/log.md @@ -155,9 +155,10 @@ import ( func main() { var c logx.LogConf conf.MustLoad("config.yaml", &c) - logx.MustSetup(c) + logx.AddWriter(logx.NewWriter(os.Stdout)) + for { select { case <-proc.Done(): diff --git a/i18n/en/docusaurus-plugin-content-docs/current/tutorials/log/log.md b/i18n/en/docusaurus-plugin-content-docs/current/tutorials/log/log.md index 7ffbd17a..4a32ec76 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/tutorials/log/log.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/tutorials/log/log.md @@ -151,9 +151,10 @@ import ( func main() { var c logx.LogConf conf.MustLoad("config.yaml", &c) - logx.MustSetup(c) + logx.AddWriter(logx.NewWriter(os.Stdout)) + for { select { case <-proc.Done():