Details
Description
log4j2.xml:
...
<FastRollingFile name="Media" fileName="${medialog}.log"
immediateFlush="true" filePattern="${medialog}-%d
-%i.log">
<PatternLayout>
<pattern>%d [%t] [%-5level] [%F:%L] %msg%n
</pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="100 MB" />
</Policies>
</FastRollingFile>
.....
When log file created,like this:
media-01-01-1970-1.log size:1KB
media.log
I set SizeBasedTriggeringPolicy 100 MB ,but the size of file "media-01-01-1970-1.log" is 1KB and time ends with file name is not right
Attachments
Issue Links
- duplicates
-
LOG4J2-267 FastRollingFileAppender doesn't work well with TimeBasedTriggeringPolicy
- Closed