I have updatd the jboss-log4j.xml file as below. But no output is generated.
I have started the JBoss Server in Debug Mode in MyEclipse IDE.
Please advice.
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
|
| <!-- ===================================================================== -->
| <!-- -->
| <!-- Log4j Configuration -->
| <!-- -->
| <!-- ===================================================================== -->
|
| <!-- $Id: jboss-log4j.xml 65459 2007-09-19 00:25:51Z dimitris(a)jboss.org $ -->
|
| <!--
| | For more configuration infromation and examples see the Jakarta Log4j
| | owebsite:
http://jakarta.apache.org/log4j
| -->
|
| <log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">
|
| <!-- ================================= -->
| <!-- Preserve messages in a local file -->
| <!-- ================================= -->
|
| <!-- A time/date based rolling appender -->
| <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"/>
|
| <!-- Rollover at midnight each day -->
| <param name="DatePattern"
value="'.'yyyy-MM-dd"/>
|
| <!-- Rollover at the top of each hour
| <param name="DatePattern"
value="'.'yyyy-MM-dd-HH"/>
| -->
|
| <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 MS Priority [Category] (Thread:NDC) Message\n
| <param name="ConversionPattern" value="%d %-5r %-5p [%c]
(%t:%x) %m%n"/>
| -->
| </layout>
| </appender>
|
|
| <!-- ============================== -->
| <!-- Append messages to the console -->
| <!-- ============================== -->
|
| <appender name="CONSOLE"
class="org.apache.log4j.ConsoleAppender">
| <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Target" value="System.out"/>
|
| <!-- Changed by Mike for logging Databaseloginmodule -JBoss -->
| <!--param name="Threshold" value="INFO"/-->
| <param name="Threshold" value="DEBUG"/>
|
| <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>
|
| <!-- ================ -->
| <!-- Limit categories -->
| <!-- ================ -->
|
| <!-- Added by Micheal John --->
| <category name="org.jboss.security">
| <priority value="DEBUG"/>
| </category>
|
| <category name="org.jboss.ejb.plugins.cmp">
| <priority value="DEBUG"/>
| </category>
|
| <category name="org.jboss.ejb.plugins.cmp">
| <priority value="TRACE"
class="org.jboss.logging.XLevel"/>
| </category>
|
| <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
| <category name="org.apache">
| <priority value="INFO"/>
| </category>
|
| <!-- Limit the jacorb category to WARN as its INFO is verbose -->
| <category name="jacorb">
| <priority value="WARN"/>
| </category>
|
| <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
| <category name="org.jgroups">
| <priority value="WARN"/>
| </category>
|
| <!-- Limit the org.quartz category to INFO as its DEBUG is verbose -->
| <category name="org.quartz">
| <priority value="INFO"/>
| </category>
|
| <!-- Limit JBoss categories
| <category name="org.jboss">
| <priority value="INFO"/>
| </category>
| -->
|
| <!-- Limit the JSR77 categories -->
| <category name="org.jboss.management">
| <priority value="INFO"/>
| </category>
|
| <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is
verbose -->
| <category name="org.jboss.serial">
| <priority value="INFO"/>
| </category>
|
|
| <!-- ======================= -->
| <!-- Setup the Root category -->
| <!-- ======================= -->
|
| <root>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="FILE"/>
| </root>
|
| </log4j:configuration>
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230427#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...