Hi,
I can't seem to get the DefaultRolloverStrategy to work with the following
configuration. Is there anything I am doing wrong?
Thanks,
Arkin

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration status="info" name="ABC" >
      <appenders>
        <RollingFile name="localFile" fileName="test.log"
filePattern="test-%d{MM-dd-yyyy}.log.gz">
          <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36}:%L
%M - %msg%n" />
          <TimeBasedTriggeringPolicy />
          <DefaultRolloverStrategy max="2" />
        </RollingFile>
      </appenders>

      <loggers>
        <root level="info">
          <appender-ref ref="localFile" />
        </root>
      </loggers>
    </configuration>

Reply via email to