I'm trying to get SMTPAppender to work, so far without success. My servlet
logs a fatal error, but no e-mail is generated.  Here's the relevant part of
my log4j.xml (host & addresses changed to protect the guilty):
-------------------------------------------------------------

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

    <appender name="SMTPAppender" class="org.apache.log4j.net.SMTPAppender">

           <param name="Threshold" value="FATAL"/>
           <param name="SMTPHost" value="hostname.somewhere.com"/>
           <param name="From" value="[EMAIL PROTECTED]"/>
           <param name="To" value="[EMAIL PROTECTED]"/>
           <param name="Subject" value="Fatal Error"/>
           <layout class="org.apache.log4j.PatternLayout">
               <param name="ConversionPattern" value="%m%n"/>
           </layout>
    </appender>

...etc.
-------------------------------------------------------------

Dick Adams
Sprint PCS

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@;jakarta.apache.org>

Reply via email to