Eric;

This happened to me once before, A co-worker inadvertently changed the
level in his code. You may want to search for something similar.

R 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg] On Behalf Of Eric Jain
Sent: Monday, February 26, 2007 2:03 PM
To: log4j-user@logging.apache.org
Subject: SMTPAppender ignoring Threshold

Even after setting the Threshold to WARN (see below), I still get only 
ERROR messages; any idea what I'm doing wrong?


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

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";>

   <appender name="console" class="org.apache.log4j.ConsoleAppender">
     <param name="Target" value="System.out"/>
     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm} %c%n
%p: %m%n"/>
     </layout>
   </appender>

   <appender name="mail" class="org.apache.log4j.net.SMTPAppender">
     <param name="Threshold" value="WARN"/>
     <param name="BufferSize" value="1"/>
     <param name="SMTPHost" value="mail..."/>
     <param name="From" value="[EMAIL PROTECTED]"/>
     <param name="To" value="[EMAIL PROTECTED]"/>
     <param name="Subject" value="[LOG] ..."/>
     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm} %c%n
%p: %m%n"/>
     </layout>
   </appender>

   <logger name="org...">
     <level value="debug"/>
   </logger>

   <root>
     <priority value ="warn"/>
     <appender-ref ref="console"/>
     <appender-ref ref="mail"/>
   </root>

</log4j:configuration>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to