[jboss-user] [Beginners Corner] - Re: JBoss failed for stress test? Or Log4j?

jaikiran do-not-reply at jboss.com
Fri Jul 4 02:09:13 EDT 2008


You are using a DailyRollingFileAppender which rolls over the file at midnight each day. It does not consider the file size for rollover. If you want it to be file size based then comment out this appender section and then uncomment the next section (which is for file size based rolling) in the jboss-log4j.xml :

<!-- 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="500KB"/>
  |      <param name="MaxBackupIndex" value="1"/>
  | 
  |      <layout class="org.apache.log4j.PatternLayout">
  |        <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  |      </layout>	    
  |    </appender>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162439#4162439

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162439



More information about the jboss-user mailing list