Details

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

      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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Remko Popma
              Reporter:
              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

                  Development