logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhilash_Pulakkudiyil" <Abhilash_Pulakkudi...@satyam.com>
Subject SMTP on log4j
Date Wed, 23 Apr 2008 05:34:59 GMT


Am using the following configuration in the log4j.xml file to send email
on INFO. My Server is Weblogic 8.1. 


It is not working and my surprise it is not saying any error too. Can
anybody help on this.  


                <appender name="SS"

                                <param name="BufferSize" value="1" />

                                <param name="Threshold" value="INFO"/>

                                <param name="SMTPHost" value="VALID IP "

                                <param name="From" value=" VALID EMAIL
ID " />

                                <param name="To" value="VALID EMAIL ID "

                                <param name="Subject" value="Log4j
Application message" />

                        <layout class="org.apache.log4j.PatternLayout">

                           <param name="ConversionPattern" value="%p
%d{HH:mm:ss} %c (%F:%L) - %m%n"/>




                <category name="SS">

                                <priority value="INFO" />

                                <appender-ref ref="SS" />



Smtp.jar, mailapi.jar, activation.jar and mail.jar are there in the


Also I tried the following also with the above configuration. But
everything is failed.


<appender name="ASYNC" class="org.apache.log4j.AsyncAppender">

                                <appender-ref ref="SS"/>




                                <level value="INFO" />        

                                <appender-ref ref="STDOUT"/>        

                                <appender-ref ref="STDERR"/>   

                                <appender-ref ref="SS" />



What's wrong here? Do I require any additional configuration for this?
Please provide me the complete configuration for the same.



Abhilash P.

This email (including any attachments) is intended for the sole use of the intended recipient/s
and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review
or reliance by others or copying or distribution or forwarding of any or all of the contents
in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard is appreciated.

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message