logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: SMTPAppender : how to specify the port ?
Date Tue, 22 Aug 2006 16:20:40 GMT
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


Mime
View raw message