Use MaxBackupIndex in DailyRollingFileAppender -lo

2019-01-21 23:12发布

问题:

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?

回答1:

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



标签: log4j