4 messages in org.apache.logging.log4j-userHow to use SMTPAppender for info mess...
FromSent OnAttachments
Marc GuillemotJun 16, 2004 6:40 am 
James StaufferJun 16, 2004 10:42 am 
JenJun 17, 2004 8:11 am 
Marc GuillemotJun 18, 2004 2:10 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:How to use SMTPAppender for info messagesActions...
From:Marc Guillemot (mgui@yahoo.fr)
Date:Jun 16, 2004 6:40:48 am
List:org.apache.logging.log4j-user

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"> <param name="Threshold" value="INFO"/> <param name="From" value="ser@test.com"/> <param name="To" value="te@test.com"/> <param name="SMTPHost" value="localhost"/> <param name="BufferSize" value="1"/> <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.