<appenders>
<RollingRandomAccessFile name="main" fileName="${sys:catalina.base}/logs/enduser.log"
filePattern="${sys:catalina.base}/logs/enduser-%d{yyyy-MM-dd}.log.gz"
immediateFlush="false" append="true">
<PatternLayout>
<pattern>%d{HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="250 MB"/>
</Policies>
</RollingRandomAccessFile>
</appenders>
This
default configuration means rotation takes place every day and the total file size is
limited to 250 MB.