Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve impelements for logging file rotation in windows #3080

Merged
merged 6 commits into from
Oct 31, 2023

Conversation

gqcn
Copy link
Member

@gqcn gqcn commented Oct 23, 2023

No description provided.

@gqcn
Copy link
Member Author

gqcn commented Oct 25, 2023

@houseme @hailaz Hello, please have a review. ❤️

@gqcn gqcn merged commit e42aa64 into master Oct 31, 2023
22 checks passed
@gqcn gqcn deleted the FixRotateFileOnWindowsBug branch October 31, 2023 12:19
@wlqe
Copy link
Contributor

wlqe commented Nov 6, 2023

升级到最新的V2.5.6版本,该版本仍然没有修复已过期的旧文件未被清理的bug,问题依旧存在。
可使用如下配置文件还原bug。
logger:
path: "./Log"
file: "{Y-m-d-H-i}.log"
level : "all"
stdout: true
rotateExpire: 1m #一分钟一个回滚
rotateBackupLimit: 4 #保留4个日志文件
rotateCheckInterval: 5s #每5秒切分检查时间间隔
过上几分钟后,在日志目录中会发现超过4个的日志文件没有被清理掉。

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.

3 participants