Skip to content

Commit

Permalink
Merge pull request #502 from TarsCloud/lbbniu/tlog
Browse files Browse the repository at this point in the history
feat: TLOG log rolling is configured using a configuration file
  • Loading branch information
lbbniu authored Jan 7, 2024
2 parents 9319267 + f0765f8 commit 98878d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tars/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98878d9

Please sign in to comment.