Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.11.0
-
None
Description
Hi,
When I used log4j2, I found in below case log4j2 can't compress my rotate log file.
<RollingRandomAccessFile name="mf-info" fileName="/var/log/oss_activity0_0.log"
filePattern="/var/log/oss_activity0_%i.log.gz">
...
<Policies>
<TimeBasedRollingPolicy/>
<SizeBasedTriggeringPolicy size="50 MB"/>
</Policies>
<DefaultRolloverStrategy max="50" min="1" fileIndex="min">
</DefaultRolloverStrategy>
</RollingRandomAccessFile>
I found when log file will rename to oss_activity0_1.log when oss_activity0_0.log reach 50MB size, but it will not be compressed to oss_activity0_1.log.gz.
Could you please help check this issue?
Thanks