[logback-user] one mail within 10 new log entries
atillademirel at gmail.com
atillademirel at gmail.com
Sun Jun 10 18:48:23 CEST 2012
Hi all,
I made a conf at least,
But I want to get one mail within 10 new log entries,
The following conf, I get 10 entry but whenever one log entry comes, immediately one mail with 1 new entry and 9 old one.
How can I get one mail within 10 new entries ?
Regards,
<appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
<evaluator>
<expression>return message.contains("vpn");</expression>
</evaluator>
<OnMismatch>NEUTRAL</OnMismatch>
<OnMatch>DENY</OnMatch>
</filter>
<smtpHost>10.x.x.x</smtpHost>
<to>atilla.demirel at gmail.com</to>
<from>tapi at throne.com.tr</from>
<subject>TAPI:${hostname}: %logger{20} - %m</subject>
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="ch.qos.logback.classic.html.HTMLLayout">
<pattern>%date %-5level %logger{35} - %message%n</pattern>
</layout>
</encoder>
<cyclicBufferTracker
class="ch.qos.logback.core.spi.CyclicBufferTrackerImpl">
<!-- send just 10 log entry per email -->
<bufferSize>10</bufferSize>
</cyclicBufferTracker>
</appender>
Bu e-posta, Turkcell BlackBerry ile gönderilmiştir.
More information about the Logback-user
mailing list