优化支持自定义logger

This commit is contained in:
boyce
2024-04-26 18:13:41 +08:00
parent ba5e30ae2e
commit 7f86b1007d
2 changed files with 44 additions and 27 deletions

View File

@@ -201,7 +201,7 @@ func initLog() error {
fmt.Printf("cannot create log file!\n")
return err
}
log.Export(logger)
log.SetLogger(logger)
return nil
}