java - Infinite number of backup files with RollingFileAppender -
do know way create infinite number of backup files rollingfileappender?
when don't specify maxbackupindex
@ all, end 1 backup file.
it not possible. see log4j api :
the maxbackupindex option determines how many backup files kept before oldest erased. option takes positive integer value. if set zero, there no backup files , log file truncated when reaches maxfilesize.
the best can using large limit (integer.max_value max).
Comments
Post a Comment