I'm trying to configure the jboss-log4j.xml file for a size based appender:
| <!-- A size based file rolling appender --> | <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender"> | <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> | <param name="File" value="${jboss.server.log.dir}/server.log"/> | <param name="Append" value="false"/> | <param name="MaxFileSize" value="100000KB"/> | <param name="MaxBackupIndex" value="30"/> | | <layout class="org.apache.log4j.PatternLayout"> | <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> | </layout> | </appender> | If I set the MaxBackupIndex=8 everything seems to work as described i.e. when the server.log size hits MaxFileSize it is copied to server.log.1 and a new server.log starts. But with the above configuration when the server.log size hits MaxFileSize the server.log is truncated and no indexed file is created which, as I read, is what should happen if the MaxBackupIndex is set to 0? So is there a limit to the value for MaxBackupIndex ? Configuration: JBoss-eap-4.3 Solaris Boat Drinks Jerry View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217868#4217868 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217868 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user