Jboss logging issue
Posted
by balaji
on Stack Overflow
See other posts from Stack Overflow
or by balaji
Published on 2010-03-23T09:48:50Z
Indexed on
2010/03/24
0:13 UTC
Read the original article
Hit count: 768
Our application is deployed on JBoss As 4.0x and we face some issues with JBoss logging. Whenever the server is restarted, JBoss stops logging, and there is no update in server.log
. After that it is not updating the log file. Then we do touch cmd on log4j.xml
, so that it creates the log files again. Please help me in fixing the issue we cant do touch everytime. We face this issue in both the nodes.
I could not figure where the problem is? If any other issues, we can check the log files. If log itself is not getting updated/logged, how can we move further in analyzing the issues without the recent/updated logs?
Contents of log4j.xml, copied from the comments below:
<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.log.dir}/server.log"/>
<param name="Append" value="false"/>
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Target" value="System.out"/>
<param name="Threshold" value="INFO"/>
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
</layout>
</appender>
<root>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</root>
<category name="org.apache">
<priority value="INFO"/>
</category>
<category name="org.apache.axis">
<priority value="INFO"/>
</category>
<category name="org.jgroups">
<priority value="WARN"/>
</category>
<category name="jacorb">
<priority value="WARN"/>
</category>
<category name="org.jboss.management">
<priority value="INFO"/>
</category>
© Stack Overflow or respective owner