Increasing file indexing on OnStartupTriggeringPolicy in log4j2
问题 While rotating the file on OnStartupTriggeringPolicy in log4j2, 7 times the files is getting created with indexing 1,2,3 to 7 as shown below. After that it is over writing to the first one. packs-03-29-2017-1.zip packs-03-29-2017-2.zip packs-03-29-2017-3.zip packs-03-29-2017-4.zip packs-03-29-2017-5.zip packs-03-29-2017-6.zip packs-03-29-2017-7.zip Can someone tell me how to increase the number of file indexing in log4j2. 回答1: Assuming that you're using the DefaultRolloverStrategy you can