0 Replies Latest reply on Sep 24, 2002 8:33 AM by Surabhi

    log4j errors Please Help!!!

    Surabhi Newbie

      Hi,

      Our live site is sending thousands of mails every day. It
      looks like for each Exception that occurs, it sends out
      10 or 15 mails. This is causing serious problems with our
      mail server and I don't have any idea how to deal with
      this.

      Here is the configuration file for log4j.


      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

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

      <!-- $Id: log4j_jboss.xml,v 1.10 2002/09/01 15:00:40 tim 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 -->
      <!-- ======================= -->


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


      </log4j:configuration>


      Many thanks,
      Dove