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 "Porfirio Partida (JIRA)" <ji...@apache.org> on 2013/09/17 08:16:52 UTC

[jira] [Commented] (LOG4J2-385) Unable to roll log files monthly

    [ https://issues.apache.org/jira/browse/LOG4J2-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769248#comment-13769248 ] 

Porfirio Partida commented on LOG4J2-385:
-----------------------------------------

Seems that it is triggering the rollover but it erases instead of back up the log as it does with daily backups.
                
> Unable to roll log files monthly
> --------------------------------
>
>                 Key: LOG4J2-385
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-385
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.0-beta8
>         Environment: Java 1.7.0_25, Windows 7 64bit, IntelliJ IDEA 12 Ultimate
>            Reporter: Ace Funk
>
> Attempting to use FastRollingFile appender and configure log file rollover to occur monthly.  When filePattern="logs/app-%d{yyyy-MM}.log.gz" is used, at application start up an archive file is created immediately (app-2013-01.log.gz) even if no log previously existed.  A log file is created, but only a single entry is made into the log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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