All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chapters.appenders.mail.mailWithMarker_Janino.xml Maven / Gradle / Ivy

There is a newer version: 1.3.0-alpha4
Show newest version
<?xml version="1.0" encoding="UTF-8" ?>

<configuration>
  <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />  

  <appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
    <evaluator class="ch.qos.logback.classic.boolex.JaninoEventEvaluator">
      <expression>
        (marker != null) &amp;&amp;
        (marker.contains("NOTIFY_ADMIN") || marker.contains("TRANSACTION_FAILURE"))
      </expression>
    </evaluator>
    <SMTPHost>${smtpHost}</SMTPHost>
    <To>${to}</To>
    <From>${from}</From>
    <layout class="ch.qos.logback.classic.html.HTMLLayout"/>
  </appender>

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






© 2015 - 2024 Weber Informatics LLC | Privacy Policy