-
1. Re: JBoss logs are not available
peterj Jul 29, 2011 9:56 AM (in response to katrin)Either attach the jboss-log.xml file or post the FILE appender.
-
2. Re: JBoss logs are not available
katrin Aug 1, 2011 3:11 AM (in response to peterj)<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"/>
<!-- Set the maximum log file size -->
<param name="MaxFileSize" value="50MB"/>
<!-- Keep two backups of the log -->
<param name="MaxBackupIndex" value="10"/>
<!-- The log layout -->
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
<!-- The full pattern: Date Priority [Category] (Thread:NDC) Message\n
<param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
-->
</layout>
</appender>
-
3. Re: JBoss logs are not available
peterj Aug 1, 2011 11:45 AM (in response to katrin)Why would you delete the log files? With the rolling appender you have defined you will never have more than 11 log files, and you can always reduce that if that is too much space.
The only setting I am a little concerned about is Append is True. Depending on the order in which the restart and the delete happens, it could be that the app server starts appending on the current log file before it gets deleted, at which point you would not see any log files until the deleted one reaches 50MB. Try setting Append to False and see if that changes the behavior.
If that is not it, then there is something else going on in your environment and it might take some digging which is not possible via a forum. You will need to employ some OS-specific tools that let you see what file activity is going on.