优化cmd 日志配置
This commit is contained in:
parent
afa59bd93b
commit
b948869ebb
@ -88,7 +88,8 @@ func main() {
|
|||||||
if err := log.OnInit(nil,
|
if err := log.OnInit(nil,
|
||||||
log.SetFileName("./s.log"),
|
log.SetFileName("./s.log"),
|
||||||
log.SetLoglevel(log.DebugLevel),
|
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))
|
panic(fmt.Sprintf("Sys log Init err:%v", err))
|
||||||
} else {
|
} else {
|
||||||
log.Infof("Sys log Init success !")
|
log.Infof("Sys log Init success !")
|
||||||
@ -341,6 +342,7 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
|
|||||||
"IsDebug": false,
|
"IsDebug": false,
|
||||||
"Loglevel": log.InfoLevel,
|
"Loglevel": log.InfoLevel,
|
||||||
"MaxAgeTime": 7,
|
"MaxAgeTime": 7,
|
||||||
|
"UniqueLog": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user