logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid LAOUFI <faridlao...@gmail.com>
Subject Fwd: SmtpAppender's
Date Wed, 14 Sep 2005 07:21:05 GMT
You can try something like this :

<appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
<to value="*****" />
<from value="****" />
<subject value="***" />
<smtpHost value="****" />
<bufferSize value="512" />
<lossy value="true" />
 <userName value="***" />
 <password value="***" />
<evaluator type="log4net.Core.LevelEvaluator">
<threshold value="ERROR"/>
</evaluator>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%message%newline%exception" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="ERROR" />
<levelMax value="FATAL" />
</filter>
</appender>

---------- Forwarded message ----------
From: Johnny <danjingxiu@gmail.com>
Date: 14 sept. 2005 08:19
Subject: SmtpAppender's
To: faridlaoufi@gmail.com

 Hello:

My configure it like this when I just error's email:

<evaluator type="log4net.Core.LevelEvaluator">

<threshold value="ERROR" />

</evaluator>

 But I have a problew in using SmtpAppender,when the SmtpServer need 
authentication, what can I configure it ?

How to add username,password,etc? can you help me ?

 Thanks.

Mime
View raw message