I try to figure aut how to configure the MaxBackupIndex property with an xml
config file.
 
The file looks like below and it does not work.
Any suggestions?
 
 
  <appender name="RootFileApp" class="RollingFileAppender">
    <param name="File" value="log_root.txt" />
    <param name="append" value="false" />
    <param name="MaxBackupIndex" value="5" />
    <triggeringPolicy class="org.apache.log4j.SizeBasedTriggeringPolicy">
      <param name="MaxFileSize" value="10KB"/>
    </triggeringPolicy>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern"  value="%d[%t] %-5p %c %x - %m %n"/>
    </layout>
  </appender>

Best regards
ML

<<winmail.dat>>

Reply via email to