improve: enable color log output when disable write log file

This commit is contained in:
Revincx
2022-10-17 16:11:07 +08:00
parent 8734408a68
commit 3af71513ae

View File

@@ -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",
})
}