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

TimeBasedTriggeringPolicy does not accept %i increment FilePattern

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-rc1
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: