<?xml version="1.0" encoding="UTF-8" ?>

<!-- ============================================================= -->
<!-- Sample SMTPAppender configuration using the HTMLLayout and a  --> 
<!-- custom triggering policy.                                     -->
<!-- ============================================================= -->

<configuration>
  <appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
    <Evaluator class="chapters.appenders.mail.CounterBasedEvaluator" />
    <SMTPHost>${smtpHost}</SMTPHost>
    <To>${to}</To>
    <From>${from}</From>
    <subject>%logger{20} - %m</subject>
    <layout class="ch.qos.logback.classic.html.HTMLLayout"/>
  </appender>

  <root>
    <level value ="debug"/>
    <appender-ref ref="EMAIL" />
  </root>  
</configuration>


