I used TimeBasedRollingPolicy of RollingFileAppender to rollover log file every minute. And at the same time I'd like to use MaxBackupIndex to set the max number of backup files. But MaxBackupIndex does not work. TimeBasedRollingPolicy cannot work with MaxBackupIndex or my configuration file has some wrong? I attached my configuration:
<?xml version="1.0" encoding="UTF-8" ?> <log4j:configuration xmlns:log4j='http://logging.apache.org/' debug="true"> <appender name="ROLLING" class="org.apache.log4j.rolling.RollingFileAppender"> <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy"> </rollingPolicy> <layout class="org.apache.log4j.PatternLayout"> </layout> </appender> <root> <level value="INFO"/> <appender-ref ref="ROLLING"/> </root> </log4j:configuration> -- View this message in context: http://www.nabble.com/Does-TimeBasedRollingPolicy-work-with-MaxBackupIndex--tp19915414p19915414.html Sent from the Log4cxx - Users mailing list archive at Nabble.com.