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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user