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

日志当中可否添加保留多少天日志的功能? #772

Open
fgc1101 opened this issue Oct 18, 2023 · 2 comments
Open

日志当中可否添加保留多少天日志的功能? #772

fgc1101 opened this issue Oct 18, 2023 · 2 comments
Labels

Comments

@fgc1101
Copy link

fgc1101 commented Oct 18, 2023

What problem does this feature solve?

这个功能就是为了保留最近多少天的日志。对于产生大量日志的情况来说。这样也能节省硬盘空间。

What does the proposed API look like?

@xxl4
Copy link

xxl4 commented Oct 18, 2023

这个您可以参考下 zap 的日志配置就可以了。他们默认是支持你说的这种需求的。

@fgc1101
Copy link
Author

fgc1101 commented Oct 19, 2023

您可以参考下zap的日志配置就可以了。他们默认是支持您说的这种需求的。

好的。谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants