By default, a maximum of 30 nnl.log and 5 nnlgateway.log files are kept before being overwritten.
If you are configuring nnl.log, search log4j2-nnl.xml for the RollingFile element pertaining to it. Otherwise, skip this step.
<RollingFile fileName="${sys:catalina.base}/logs/nnl.log"To set the maximum number of log files to keep, find the following string in this section.
<DefaultRolloverStrategy Change the max parameter, for example:
<DefaultRolloverStrategy max="12"/>