change: PersistentPreRun log setting

This commit is contained in:
debugtalk
2021-10-18 10:13:27 +08:00
parent 268c4fd0af
commit c287241c13
5 changed files with 7 additions and 17 deletions

2
log.go
View File

@@ -30,8 +30,8 @@ func SetLogLevel(level string) {
}
func SetLogPretty() {
log.Info().Msg("Set log to pretty console")
log = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
log.Info().Msg("Set log to pretty console")
}
func GetLogger() zerolog.Logger {