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

log 日志按时间分割,默认为一天 ,有问题 , 每天都产生文件 #5

Open
xl-mr opened this issue Dec 30, 2020 · 2 comments

Comments

@xl-mr
Copy link

xl-mr commented Dec 30, 2020

随着时间长了,日志生成多了, 就会诞生文件打开数过大,难道不是每天切割 只生成一个文件
image
image

@xl-mr
Copy link
Author

xl-mr commented Dec 30, 2020

麻烦排查下, 再说我即使linux 把文件打开数调整下 这个也不是办法 每天至少新产生100多个文件 时间久了 还是会出现 open too many files

@LvBay
Copy link
Contributor

LvBay commented Dec 30, 2020

1.提高日志级别到info,可以降低日志的数量
2.可以在服务器上加一个crontab任务,定时删除指定格式的日志文件
@xl-mr

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

No branches or pull requests

2 participants