logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Chande <rajesh.cha...@ge.com>
Subject Re: Chainsaw (SocketAppender/SocketReceiver)
Date Thu, 02 Mar 2006 12:06:29 GMT
Hello,

How can I make the SMTP appender working.

I have the following config, but does not work for me.

   <!-- Buffer events and log them asynchronously -->
   <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <appender-ref ref="FILE"/>
     <appender-ref ref="CONSOLE"/>
     <appender-ref ref="SMTP"/>
   </appender>
   

   <!-- EMail events to an administrator -->
   <appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <param name="Threshold" value="INFO"/>
     <param name="To" value="rajesh.chande@ge.com"/>
     <param name="From" value="administrator.web@ge.com"/>
     <param name="Subject" value="JBoss Sever Errors"/>
<!--  <param name="SMTPHost" value="frbucmsxbhmedge.euro.med.ge.com"/> -->
<!--  <param name="SMTPHost" value="frbucweb07.euro.med.ge.com:25"/> -->
      <param name="SMTPHost" value="budmlvem01.e2k.ad.ge.com"/>
     <param name="BufferSize" value="10"/>
     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
     </layout>
   </appender>

   <root>
      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="FILE"/>
      <appender-ref ref="SMTP"/>
	<appender-ref ref="ASYNC"/>
   </root>

any one, any idea?

Rajesh




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message