From f0765f85ec56388196977f4a65d1a78158a135ef Mon Sep 17 00:00:00 2001 From: lbbniu Date: Sun, 7 Jan 2024 14:34:10 +0800 Subject: [PATCH] feat: TLOG log rolling is configured using a configuration file --- tars/application.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tars/application.go b/tars/application.go index 67693445..388372a4 100755 --- a/tars/application.go +++ b/tars/application.go @@ -184,7 +184,7 @@ func (a *application) initConfig() { } rogger.SetLevel(rogger.StringToLevel(a.svrCfg.LogLevel)) if a.svrCfg.LogPath != "" { - _ = TLOG.SetFileRoller(a.svrCfg.LogPath+"/"+a.svrCfg.App+"/"+a.svrCfg.Server, 10, 100) + _ = TLOG.SetFileRoller(a.svrCfg.LogPath+"/"+a.svrCfg.App+"/"+a.svrCfg.Server, int(a.svrCfg.LogNum), int(a.svrCfg.LogSize)) } // cache