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

FilePattern with year as date shows year+1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0-rc1
    • None
    • Appenders

    Description

      The following basic configuration is showing 2015 not 2014:

      <RollingRandomAccessFile name="File" fileName="${filename}"
              filePattern="logs/icap.log-%d{yy}.%i">
            <PatternLayout pattern="%m%n"/>
            <Policies>
              <OnStartupTriggeringPolicy />
              <TimeBasedTriggeringPolicy interval="12" modulate="true"/>
            </Policies>
          </RollingRandomAccessFile>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            steven.mccoy@thomsonreuters.com Steven McCoy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: