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

RollingFile appender does not rollover file as per TimeZone specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7
    • 2.20.0
    • None
    • None

    Description

      RollingFile appender does not rollover file as per TimeZone specified. The appender roll over according to LOCAL time in spite of providing TimeZone in filePattern

      Expected: The rollover should happen as per specified TimeZone

      <RollingFile name="RollingFile" fileName="${baseDir}/app.log"
      filePattern="${baseDir}/$${date:yyyy-MM}

      {GMT}/app-%d{yyyy-MM-dd}{GMT}

      .log.gz">
      ....
      ....
      </RollingFile>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wassi.sandhu Wassi Sandhu
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: