4 messages in org.apache.logging.log4j-userRE: How to use SMTPAppender for info ...
FromSent OnAttachments
Marc Guillemot16 Jun 2004 06:40 
James Stauffer16 Jun 2004 10:42 
Jen17 Jun 2004 08:11 
Marc Guillemot18 Jun 2004 02:10 
Subject:RE: How to use SMTPAppender for info messages
From:James Stauffer (jsta@spscommerce.com)
Date:06/16/2004 10:42:50 AM
List:org.apache.logging.log4j-user

How is that appender used? Can you show how you configure a logger to use that appender?

-----Original Message----- From: news [mailto:ne@sea.gmane.org] On Behalf Of Marc Guillemot Sent: Wednesday, June 16, 2004 8:41 AM To: log4@jakarta.apache.org Subject: How to use SMTPAppender for info messages

Hi,

I'd like to use a SMTPAppender to send info messages (these are not errors but informations about the lifecycle of the application). I get only ERROR and FATAL messages sent although I set the threshold to INFO:

<appender name="mailLifecycle" class="org.apache.log4j.net.SMTPAppender"> <DEFANGED_param name="Threshold" value="INFO"/> <DEFANGED_param name="From" value="ser@test.com"/> <DEFANGED_param name="To" value="te@test.com"/> <DEFANGED_param name="SMTPHost" value="localhost"/> <DEFANGED_param name="BufferSize" value="1"/> <DEFANGED_param name="Subject" value="[dev] Application lifecyle"/> <layout class="org.apache.log4j.HTMLLayout"/> </appender>

Is it possible to configure it from the log4j.xml or do I have to write my custom Appender?

Marc.