[
https://issues.apache.org/jira/browse/LOG4J2-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Remko Popma updated LOG4J2-864:
-------------------------------
Description:
I'm writing log messages in great speed (never tried at slow speed...) with the
following configuration:
{code}
...
<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>
...
{code}
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.
was:
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.
> 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:
> {code}
> ...
> <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>
> ...
> {code}
> 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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]