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

FastRollingFileAppender

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-beta6
    • 2.0-beta8
    • Appenders
    • Window7
      apache-tomcat-7.0.39
      java1.7

    Description

      log4j2.xml:
      ...
      <FastRollingFile name="Media" fileName="${medialog}.log"
      immediateFlush="true" filePattern="${medialog}-%d

      {MM-dd-yyyy}

      -%i.log">
      <PatternLayout>
      <pattern>%d [%t] [%-5level] [%F:%L] %msg%n
      </pattern>
      </PatternLayout>
      <Policies>
      <TimeBasedTriggeringPolicy />
      <SizeBasedTriggeringPolicy size="100 MB" />
      </Policies>
      </FastRollingFile>
      .....

      When log file created,like this:
      media-01-01-1970-1.log size:1KB
      media.log

      I set SizeBasedTriggeringPolicy 100 MB ,but the size of file "media-01-01-1970-1.log" is 1KB and time ends with file name is not right

      Attachments

        Issue Links

          Activity

            People

              rpopma Remko Popma
              fxc fxc
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 372h
                  372h
                  Remaining:
                  Remaining Estimate - 372h
                  372h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified