I have a question about The Filepattern for RollingFile Appender in log4j 2. The RollingFile needs an FileName and FilePattern but i dont know what the FilePattern does.I think it is just ignored. This a part of my log4j2.xml
<Property name="pattern">
%-5p [%d{dd.MM.yyyy - HH:mm:ss}] : %m%n %ex
</Property>
<Property name="MainLoggerPath">
C:/logs/MainLogger.log
</Property>
<Property name="FilePattern">
C:/logs/$${date:yyyy-MM}/app-%d{MM- dd-yyyy}-%i.log.gz
</Property>
<RollingFile name="MainAppender" fileName="${MainLoggerPath}"
filePattern="${FilePattern}">
<ThresholdFilter level="ALL" onMatch="ACCEPT" onMismatch="DENY" />
<PatternLayout
pattern="${pattern}" />
<Policies>
<SizeBasedTriggeringPolicy size="10 MB" />
</Policies>
<DefaultRolloverStrategy max="10" />
</RollingFile>