From b1cbbec602c7e5512bbb76db56faead6d7d992f1 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Fri, 21 Oct 2022 13:03:37 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global/log.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/global/log.go b/global/log.go index 5cbb8fc..5415340 100644 --- a/global/log.go +++ b/global/log.go @@ -37,6 +37,8 @@ func initLog() { //设置双重输出 mw := io.MultiWriter(os.Stdout, f) log.SetOutput(mw) + + //设置输出格式 log.SetFormatter(&nested.Formatter{ HideKeys: true, NoColors: Config.Settings.Log.WriteFile,