2
Reply

log4net send several emails

Cassie Mod

Cassie Mod

Feb 22 2016 4:47 AM
310
hi,
 
I use log4net to create a logging system.
However log4net now sends 940 emails wich contain all 1 line of text.
instead of just one email.
 How can i fix this ?
 
here is my config file:
<appender name="EmailAppender" type="log4net.Appender.SmtpAppender">
<param name="Threshold" value="INFO" />
<subject value="Tribess Rating Error Report" />
<to value="[email protected]" />
<from value="TribessRatingChecker &lt;[email protected]&gt;" />
<smtpHost value="smtp-out.onexs.com" />
<bufferSize value="1000" />
<lossy value="false" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff} %-5level - %message%newline" />
</layout>
</appender> 

Answers (2)