有人可以告诉我如何在DailyRollingFileAppender中使用MaxBackupIndex。我知道RollingFileAppender支持maxBackupIndex属性,但是在DailyRollingFileAppender中使用MaxBackupIndex是否有任何变通办法?
最佳答案
Log4j的当前稳定版本(1.2)中不提供此功能。
无论如何,您可以探索以下内容:
http://wiki.apache.org/logging-log4j/DailyRollingFileAppender