This commit is contained in:
aozhiwei 2020-10-26 19:02:11 +08:00
parent 906ce9519c
commit 5549c4e7ac
2 changed files with 6 additions and 0 deletions

2
app.go
View File

@ -49,6 +49,8 @@ func (this *App_) Init() {
5000) 5000)
_SysLog = new(SysLog_) _SysLog = new(SysLog_)
_SysLog.Init() _SysLog.Init()
_TgLog = new(TGLog_)
_TgLog.Init()
flag.IntVar(&this.nodeId, "n", 0, "node id") flag.IntVar(&this.nodeId, "n", 0, "node id")
flag.IntVar(&this.instanceId, "i", 0, "instance id") flag.IntVar(&this.instanceId, "i", 0, "instance id")
flag.Parse() flag.Parse()

View File

@ -33,6 +33,10 @@ func (this *TGLog_) UnInit() {
this.chGoSaveExit <- 1 this.chGoSaveExit <- 1
} }
func (this *TGLog_) SetPolyLog(isPolyLog bool) {
this.isPolyLog = isPolyLog
}
func (this *TGLog_) AddTrackLog( func (this *TGLog_) AddTrackLog(
gameId int32, gameId int32,
accountId string, accountId string,