上传平台日志级别

This commit is contained in:
liwei1dao 2023-01-31 11:54:01 +08:00
parent ebbb0c9e5d
commit d3f7e71d9f

View File

@ -86,7 +86,7 @@ func init() {
func main() {
flag.Parse()
if err := log.OnInit(nil,
log.SetFileName("./log/cmd.log"),
log.SetFileName("./s.log"),
log.SetLoglevel(log.DebugLevel),
log.SetIsDebug(true)); err != nil {
panic(fmt.Sprintf("Sys log Init err:%v", err))
@ -330,15 +330,17 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
if !onelog {
sseting.Sys["log"] = map[string]interface{}{
"FileName": fmt.Sprintf("./log/%s.log", sseting.Id),
"Loglevel": config.Loglevel,
"MaxAgeTime": config.MaxAgeTime,
"IsDebug": false,
"Loglevel": log.InfoLevel,
"MaxAgeTime": 7,
}
} else {
sseting.Sys["log"] = map[string]interface{}{
"Alias": sseting.Id,
"FileName": "./log/s.log",
"Loglevel": config.Loglevel,
"MaxAgeTime": config.MaxAgeTime,
"FileName": "./s.log",
"IsDebug": false,
"Loglevel": log.InfoLevel,
"MaxAgeTime": 7,
}
}