Adam Honen (JIRA)
2014-10-01 07:04:35 UTC
Adam Honen created LOG4J2-864:
---------------------------------
Summary: RollingFile - bad naming of files within zipped archives
Key: LOG4J2-864
URL: https://issues.apache.org/jira/browse/LOG4J2-864
Project: Log4j 2
Issue Type: Bug
Components: Appenders
Affects Versions: 2.0.2
Environment: Windows 7 64 bit
Java 8 update 20
Reporter: Adam Honen
Priority: Minor
I'm writing log messages in great speed (never tried at slow speed...) with the following configuration:
...
<RollingFile name="fileSync" fileName="logs/mylog.log" filePattern="logs/mylog.%i.log.zip">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%thread..%X{akkaSource}] %-5level %c{1.} - %msg%n" />
<Policies>
<SizeBasedTriggeringPolicy size="25 MB" />
</Policies>
<DefaultRolloverStrategy max="10" />
</RollingFile>
...
Expected result:
Log files get rolled over and zipped while each archive with the name format of mylog.<X>.log.zip contains a file named mylog.<X>.log.
Actual result:
Given enough time, all archives contain files named mylog.10.log.
For example, mylog.8.log.zip contains mylog.10.log.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------
Summary: RollingFile - bad naming of files within zipped archives
Key: LOG4J2-864
URL: https://issues.apache.org/jira/browse/LOG4J2-864
Project: Log4j 2
Issue Type: Bug
Components: Appenders
Affects Versions: 2.0.2
Environment: Windows 7 64 bit
Java 8 update 20
Reporter: Adam Honen
Priority: Minor
I'm writing log messages in great speed (never tried at slow speed...) with the following configuration:
...
<RollingFile name="fileSync" fileName="logs/mylog.log" filePattern="logs/mylog.%i.log.zip">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%thread..%X{akkaSource}] %-5level %c{1.} - %msg%n" />
<Policies>
<SizeBasedTriggeringPolicy size="25 MB" />
</Policies>
<DefaultRolloverStrategy max="10" />
</RollingFile>
...
Expected result:
Log files get rolled over and zipped while each archive with the name format of mylog.<X>.log.zip contains a file named mylog.<X>.log.
Actual result:
Given enough time, all archives contain files named mylog.10.log.
For example, mylog.8.log.zip contains mylog.10.log.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)