Skip to content

feat: TLOG log rolling is configured using a configuration file#502

Merged
lbbniu merged 1 commit intomasterfrom
lbbniu/tlog
Jan 7, 2024
Merged

feat: TLOG log rolling is configured using a configuration file#502
lbbniu merged 1 commit intomasterfrom
lbbniu/tlog

Conversation

@lbbniu
Copy link
Collaborator

@lbbniu lbbniu commented Jan 7, 2024

No description provided.

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))

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types

Incorrect conversion of an unsigned 64-bit integer from [strconv.ParseUint](1) to a lower bit size type int without an upper bound check.
@lbbniu lbbniu merged commit 98878d9 into master Jan 7, 2024
@lbbniu lbbniu deleted the lbbniu/tlog branch January 11, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant