上传平台日志级别
This commit is contained in:
parent
ebbb0c9e5d
commit
d3f7e71d9f
@ -86,7 +86,7 @@ func init() {
|
|||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if err := log.OnInit(nil,
|
if err := log.OnInit(nil,
|
||||||
log.SetFileName("./log/cmd.log"),
|
log.SetFileName("./s.log"),
|
||||||
log.SetLoglevel(log.DebugLevel),
|
log.SetLoglevel(log.DebugLevel),
|
||||||
log.SetIsDebug(true)); err != nil {
|
log.SetIsDebug(true)); err != nil {
|
||||||
panic(fmt.Sprintf("Sys log Init err:%v", err))
|
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 {
|
if !onelog {
|
||||||
sseting.Sys["log"] = map[string]interface{}{
|
sseting.Sys["log"] = map[string]interface{}{
|
||||||
"FileName": fmt.Sprintf("./log/%s.log", sseting.Id),
|
"FileName": fmt.Sprintf("./log/%s.log", sseting.Id),
|
||||||
"Loglevel": config.Loglevel,
|
"IsDebug": false,
|
||||||
"MaxAgeTime": config.MaxAgeTime,
|
"Loglevel": log.InfoLevel,
|
||||||
|
"MaxAgeTime": 7,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sseting.Sys["log"] = map[string]interface{}{
|
sseting.Sys["log"] = map[string]interface{}{
|
||||||
"Alias": sseting.Id,
|
"Alias": sseting.Id,
|
||||||
"FileName": "./log/s.log",
|
"FileName": "./s.log",
|
||||||
"Loglevel": config.Loglevel,
|
"IsDebug": false,
|
||||||
"MaxAgeTime": config.MaxAgeTime,
|
"Loglevel": log.InfoLevel,
|
||||||
|
"MaxAgeTime": 7,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user