logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adams, Dick W [PCS]" <DAdam...@sprintspectrum.com>
Subject SMTPAppender
Date Thu, 24 Oct 2002 13:09:12 GMT

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="someone@somewhere.com"/>
           <param name="To" value="somebody@somewhere.com"/>
           <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>


Mime
View raw message