From 3af71513ae681fbc88b449c58ff1849fd4e22d3d Mon Sep 17 00:00:00 2001 From: Revincx Date: Mon, 17 Oct 2022 16:11:07 +0800 Subject: [PATCH] improve: enable color log output when disable write log file --- global/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global/log.go b/global/log.go index 7c1fa66..5cbb8fc 100644 --- a/global/log.go +++ b/global/log.go @@ -39,7 +39,7 @@ func initLog() { log.SetOutput(mw) log.SetFormatter(&nested.Formatter{ HideKeys: true, - NoColors: true, + NoColors: Config.Settings.Log.WriteFile, TimestampFormat: "2006-01-02 15:04:05", }) }