Log4j 2
  1. Log4j 2
  2. LOG4J2-267

FastRollingFileAppender doesn't work well with TimeBasedTriggeringPolicy

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta6
    • Fix Version/s: 2.0-beta8
    • Component/s: Appenders
    • Labels:
      None
    • Environment:

      Win7 SP1 64bit + JDK 6u43 64bit

      Description

      The below configuration file doesn't deliver correct rollover. As soon as logging starts, the log file is rolled over with this date "1970-01-01". The same configuration work fine with RollingFile appender.
      <configuration>
      <appenders>
      <FastRollingFile name="LogFile" fileName="log/ui-selenium-tests.log" append="false"
      filePattern="log/ui-selenium-tests.%d

      {yyyy-MM-dd}

      .log">
      <ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/>
      <PatternLayout pattern="%d %p [%c.%M():%L] - %m%n"/>
      <Policies>
      <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
      </Policies>
      <DefaultRolloverStrategy/>
      </FastRollingFile >
      </appenders>
      <loggers>
      <root level="TRACE">
      <appender-ref ref="LogFile"/>
      </root>
      </loggers>
      </configuratio

      1. LOG4J2-267.patch
        1 kB
        Thomas Neidhart

        Issue Links

          Activity

          ilynaf created issue -
          Remko Popma made changes -
          Field Original Value New Value
          Assignee Remko Popma [ remkop@yahoo.com ]
          Thomas Neidhart made changes -
          Attachment LOG4J2-267.patch [ 12589264 ]
          Remko Popma made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Remko Popma made changes -
          Link This issue is duplicated by LOG4J2-271 [ LOG4J2-271 ]
          Remko Popma made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Remko Popma made changes -
          Fix Version/s 2.0-beta8 [ 12324575 ]
          ilynaf made changes -
          Comment [ Verified on beta 8 ]
          ilynaf made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Remko Popma
              Reporter:
              ilynaf
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development