[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 ? 


   <appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
     <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
        <expression>return message.contains("vpn");</expression>
         <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>
           <!-- send just 10 log entry per email -->

Bu e-posta, Turkcell BlackBerry ile gönderilmiştir.

More information about the Logback-user mailing list