在 DailyRollingFileAppender -log4j 中使用 MaxBackupIndex
有人可以告诉我如何在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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