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

SizeBasedTriggeringPolicy is not working properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • 2.3, 2.4.1, 2.8
    • None
    • Appenders
    • Windows 7 OS Websphere 8.5.5.6

    Description

      <?xml version="1.0" encoding="UTF-8"?>
      <Configuration>
      <Appenders> 
      		<RollingFile name="RollingFile" fileName="/logs/test.log" 
      			filePattern="/logs/test-%i.log"> 
      			<PatternLayout> 
      				<pattern>%d %-5p %class{36} (%M:%L) -%msg%xEx%n</pattern> 
      			</PatternLayout> 
      			<Policies> 
      				<SizeBasedTriggeringPolicy size="2 KB" />
      			</Policies>
      			<DefaultRolloverStrategy max="5"/> 
      		</RollingFile> 
      		<Console name="console" target="SYSTEM_OUT"> 
      			<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> 
      		</Console> 
      	</Appenders> 
      	<Loggers>
      	    <root level="trace">
      		  <appender-ref ref="RollingFile"/> 
      	      <appender-ref ref="console"/>
      	    </root>
      	</Loggers>
      </Configuration>
      

      Attachments

        1. LOG4J2-1086.Test.patch
          6 kB
          Pierrick HYMBERT

        Activity

          People

            rgoers Ralph Goers
            sharatchandrat Sharat
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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