Apps
Apps

Reputation:

Use MaxBackupIndex in DailyRollingFileAppender -log4j

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?

Upvotes: 28

Views: 79238

Answers (1)

Sourabh
Sourabh

Reputation: 1615

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

Upvotes: 24

Related Questions