Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-385

Unable to roll log files monthly

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-beta8
    • 2.0-rc1
    • Appenders
    • None
    • Java 1.7.0_25, Windows 7 64bit, IntelliJ IDEA 12 Ultimate

    Description

      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 startup 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rpopma Remko Popma
            acefunk Ace Funk
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment