I do not have 4.0.1, so I will answer based on 4.0.5 - hopefully they are not that
different (yes, I know that this is a very bad assumption to make with the 4.0.x
versions).
Anyway, the default appender is the DailyRollingFileAppender which has no size limitation
- it just increases is size until midnight and then a new log file is created. To limit
the size, you could use the RollingFileAppender, it has a MaxFileSize parameter.
Here is an example:
<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="true"/>
| <param name="MaxFileSize" value="500KB"/>
| <param name="MaxBackupIndex" value="20"/>
| <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=4178936#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...