<configuration>

  <appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
    <SMTPHost>localhost</SMTPHost>
    <SMTPPort>${port}</SMTPPort>
    <To>nospam@qos.ch</To>
    <From>user@host.dom</From>
    <Subject>testCustomEvaluator %logger - %m</Subject>
    <evaluator class="ch.qos.logback.classic.blackbox.net.CounterBasedEvaluator">
      <limit>2</limit>
    </evaluator>
    <layout class="ch.qos.logback.classic.PatternLayout">
      <Pattern>%message</Pattern>
      <outputPatternAsPresentationHeader>false</outputPatternAsPresentationHeader>
    </layout>
  </appender>

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