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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -