diff --git a/app.go b/app.go index a15a9ce..5b7dc12 100644 --- a/app.go +++ b/app.go @@ -49,6 +49,8 @@ func (this *App_) Init() { 5000) _SysLog = new(SysLog_) _SysLog.Init() + _TgLog = new(TGLog_) + _TgLog.Init() flag.IntVar(&this.nodeId, "n", 0, "node id") flag.IntVar(&this.instanceId, "i", 0, "instance id") flag.Parse() diff --git a/tglog.go b/tglog.go index 1134c42..c3e406c 100644 --- a/tglog.go +++ b/tglog.go @@ -33,6 +33,10 @@ func (this *TGLog_) UnInit() { this.chGoSaveExit <- 1 } +func (this *TGLog_) SetPolyLog(isPolyLog bool) { + this.isPolyLog = isPolyLog +} + func (this *TGLog_) AddTrackLog( gameId int32, accountId string,