优化cmd 日志配置

This commit is contained in:
liwei1dao 2023-02-01 10:12:05 +08:00
parent afa59bd93b
commit b948869ebb

View File

@ -88,7 +88,8 @@ func main() {
if err := log.OnInit(nil,
log.SetFileName("./s.log"),
log.SetLoglevel(log.DebugLevel),
log.SetIsDebug(true)); err != nil {
log.SetUniqueLog(true),
log.SetIsDebug(false)); err != nil {
panic(fmt.Sprintf("Sys log Init err:%v", err))
} else {
log.Infof("Sys log Init success !")
@ -341,6 +342,7 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
"IsDebug": false,
"Loglevel": log.InfoLevel,
"MaxAgeTime": 7,
"UniqueLog": true,
}
}