func (this *Config) setLog() { Log = logs.NewLogger(this.account_log_max) //日志 Log.EnableFuncCallDepth(true) err := Log.SetLogger("file", `{"filename":"log/account.log"}`) if err != nil { fmt.Println(err) } }
func init() { Log = logs.NewLogger(10000) //日志 Log.EnableFuncCallDepth(true) Log.SetLogger("file", `{"filename":"game.log"}`) }