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
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
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