logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pankaj C <pcham...@ivp.in>
Subject Multiple smtphost addresses using log4net
Date Wed, 06 Jun 2012 16:34:42 GMT

I want to be able to specify multiple smtp server host addresses and
implement a logic whereby if email using one smtp server fails, it tries to
send using the next smtp server address. Is it possible using log4net. Can
we override something and implement our own logic?
<appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
      <to value="group@ivp.in" />
      <from value="uname@ivp.in" />
      <subject>Error Notification</subject>
      <smtpHost value="smtp.gmail.com" />
      <authentication value="Basic" />
      <port value="587" />
      <username value="uname@company.com" />
      <password value="" />
      <bufferSize value="1" />
      <EnableSsl value="true"/>
      <lossy value="true" />
      <evaluator type="log4net.Core.LevelEvaluator">
        <threshold value="ERROR"/>
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%newline%date [%thread] %level %logger -
%message%newline%newline%exception" />
View this message in context: http://old.nabble.com/Multiple-smtphost-addresses-using-log4net-tp33971096p33971096.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

View raw message