示例#1
0
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)
	}
}
示例#2
0
func init() {
	Log = logs.NewLogger(10000) //日志
	Log.EnableFuncCallDepth(true)
	Log.SetLogger("file", `{"filename":"game.log"}`)
}