chapters.appenders.mail.mailWithMarker_Janino.xml Maven / Gradle / Ivy
<?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) && (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