Does TimeBasedRollingPolicy work with MaxBackupIndex?

2008-10-10 Thread Jathy
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 s

Re: TimeBasedRollingPolicy does not work in RollingFileAppender

2008-10-10 Thread Jathy
Jathy wrote: > > I used TimeBasedRollingPolicy to rollover log file every day but it did > not work. No files was generated. My configuration file is shown below, > > > debug="true"> >class="org.apache.log4j.rolling.RollingFileAppender"> > class="org.apache.log4j.rolling.Ti

TimeBasedRollingPolicy does not work in RollingFileAppender

2008-10-10 Thread Jathy
I used TimeBasedRollingPolicy to rollover log file every day but it did not work. No files was generated. My configuration file is shown below, And in the code, I used the following codes to i