在 DailyRollingFileAppender -log4j 中使用 MaxBackupIndex

发布于 2024-07-20 06:21:00 字数 165 浏览 4 评论 0原文

有人可以告诉我如何在 DailyRollingFileAppender 中使用 MaxBackupIndex。我知道 RollingFileAppender 支持 maxBackupIndex 属性,但是在 DailyRollingFileAppender 中使用 MaxBackupIndex 是否有任何解决方法?

Can someone please tell me how to use MaxBackupIndex in DailyRollingFileAppender.I know that the RollingFileAppender supports a maxBackupIndex property, but is there any workarounds for using MaxBackupIndex in DailyRollingFileAppender?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜还是长夜 2024-07-27 06:21:00

Log4j 当前稳定版本 (1.2) 中不提供此功能。

无论如何,您可以探索以下内容:
http://wiki.apache.org/logging-log4j/DailyRollingFileAppender

This feature is not available in current stable version (1.2) of Log4j.

Anyway you can explore the following:
http://wiki.apache.org/logging-log4j/DailyRollingFileAppender

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文