1 Reply Latest reply on Nov 22, 2002 11:43 AM by ben2

    Log4j configuration

    jakasjava

      I know this has been addressed before by Adrian.
      I am not clear I have a log4j.xml (default available in Jboss)
      The default threshold is INFO for Jboss
      I want DEBUG for my category.
      The XML is as follows
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

      <!-- ===================================================================== -->
      <!-- -->
      <!-- Log4j Configuration -->
      <!-- -->
      <!-- ===================================================================== -->

      <!-- $Id: log4j.xml,v 1.5.2.2 2002/05/23 05:55:43 starksm Exp $ -->

      <!--
      | 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 -->




      <!-- 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"/>
      -->


      <!-- The default pattern: Date Priority [Category] Message\n -->


      <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n

      -->



      <!-- A size based file rolling appender










      -->

      <!-- ============================== -->
      <!-- Append messages to the console -->
      <!-- ============================== -->






      <!-- The default pattern: Date Priority [Category] Message\n -->





      <!-- ====================== -->
      <!-- More Appender examples -->
      <!-- ====================== -->

      <!-- Buffer events and log them asynchronously

      <appender-ref ref="FILE"/>
      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="SMTP"/>

      -->

      <!-- EMail events to an administrator











      -->

      <!-- Syslog events





      -->

      <!-- Log events to JMS (requires a topic to be created)





      -->

      <!-- ================ -->
      <!-- Limit categories -->
      <!-- ================ -->

      <!-- Limit JBoss categories to INFO



      -->

      <!-- Increase the priority threshold for the DefaultDS category



      -->

      <!-- Decrease the priority threshold for the org.jboss.varia category



      -->

      <!--
      | An example of enabling the custom TRACE level priority that is used
      | by the JBoss internals to diagnose low level details. This example
      | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
      | subpackages. This will produce A LOT of logging output.
      If you use replace the log4j 1.2 jar with a 1.1.3 jar you will need to
      change this from XLevel to XPriority.






      -->

      <!-- ======================= -->
      <!-- Setup the Root category -->
      <!-- ======================= -->



      <!-- In Logger we have Logger Log =Logger.getInstance("com.epeople.utilities.Log"); -->




      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="FILE"/>




      </log4j:configuration>

      This does not work... any tips!!!!
      Jboss 3.0.2 is the version

      thanks
      sudhi