You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Adam Honen (JIRA)" <ji...@apache.org> on 2014/10/01 09:04:35 UTC

[jira] [Created] (LOG4J2-864) RollingFile - bad naming of files within zipped archives

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)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org