优化支持自定义logger

This commit is contained in:
boyce
2024-04-26 18:13:41 +08:00
parent 7780947a96
commit 258a6821da
2 changed files with 44 additions and 27 deletions

View File

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