logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DeMZed" <dem...@gmail.com>
Subject RE: SMTPAppender : how to specify the port ?
Date Tue, 22 Aug 2006 19:06:01 GMT
Exactly.

It seems that I must create a new class MySMTPAppender extending
SMTPAppender :(

-----Message d'origine-----
De : James Stauffer [mailto:stauffer.james@gmail.com]
Envoyé : mardi 22 août 2006 18:21
À : Log4J Users List
Objet : Re: SMTPAppender : how to specify the port ?

The values that you can set correspond to the set* methods so look at the
API.  I don't see a method to set the port.

On 8/22/06, DeMZed <demzed@gmail.com> wrote:
> Hi !
>
> I use this appender :
> <appender name="WSE_SMTP" class="org.apache.log4j.net.SMTPAppender">
>                 <param name="Threshold" value="FATAL"/>
>                 <param name="To" value="****"/>
>                 <param name="From" value="****"/>
>                 <param name="Subject" value="One Fatal Error"/>
>                 <param name="SMTPHost" value="127.0.0.1"/>
>                 <param name="BufferSize" value="10"/>
>                 <layout class="org.apache.log4j.PatternLayout">
>                         <param name="ConversionPattern"
value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
>                 </layout>
>         </appender>
>
> My SMTP daemon is listening on port 250, not 25.
>
> What is the param name for the port ? I tryed SMTPPort but it does
> work, and my searches gave me any result...
>
> Thanks :)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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




  _____  

Antivirus avast! <http://www.avast.com> : message Sortant sain. 


Base de donnees virale (VPS) : 0634-0, 21/08/2006
Analyse le : 22/08/2006 21:06:01
avast! - copyright (c) 1988-2006 ALWIL Software.




---------------------------------------------------------------------
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