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

FilePattern with year as date shows year+1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0-rc1
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:

      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

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

              Dates

              • Created:
                Updated: