优化cmd 日志配置
This commit is contained in:
parent
afa59bd93b
commit
b948869ebb
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user