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

TimeBasedTriggeringPolicy does not accept %i increment FilePattern

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.0-rc1
    • None
    • Appenders

    Description

      The following configuration should be valid but raises an exception because the filePattern contains no date however it does contain an increment pattern.

          <RollingRandomAccessFile name="File" fileName="${filename}"
              filePattern="logs/icap.log-%i">
            <PatternLayout pattern="%m%n"/>
            <Policies>
              <OnStartupTriggeringPolicy />
              <TimeBasedTriggeringPolicy interval="12" modulate="true"/>
              <SizeBasedTriggeringPolicy size="500 MB"/>
            </Policies>
            <DefaultRolloverStrategy fileIndex="min" max="3"/>
          </RollingRandomAccessFile>
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: