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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -