title: Try to use an evaluator JaninoEventEvaluator in logback. But does not work to filter out depending on condition
body: <p>Try to use an evaluator JaninoEventEvaluator in logback. But does not work to filter out depending on condition.</p>
  <p>My configuration of logback.xml is given below.</p>
  <pre><code>&lt;appender name=&quot;durgaDlyFileSQL&quot; class=&quot;ch.qos.logback.core.FileAppender&quot;&gt;
    &lt;File&gt;${durga.log.file.name.SQL}&lt;/File&gt;
    &lt;encoder&gt;
      &lt;pattern&gt;${ScreenConversionPattern}&lt;/pattern&gt;      
    &lt;/encoder&gt;
    &lt;filter class=&quot;ch.qos.logback.core.filter.EvaluatorFilter&quot;&gt;
      &lt;evaluator name=&quot;loggingTaskEval&quot; class=&quot;ch.qos.logback.classic.boolex.JaninoEventEvaluator&quot;&gt;
      &lt;expression&gt;
  System.out.println(&quot;MDC: &quot; + mdc + &quot; &quot; + mdc.get(&quot;screenName&quot;)); 
  String screen = (String) mdc.get(&quot;screenName&quot;);
  
      if ((screen == null) ||
      screen.equals(&quot;Server Type Entry/Amend/Cancel&quot;)) {
        return false;
      }
  
      &lt;/expression&gt;
    &lt;/evaluator&gt;
    &lt;onMatch&gt;ACCEPT&lt;/onMatch&gt;
    &lt;onMismatch&gt;DENY&lt;/onMismatch&gt;
  &lt;/filter&gt;
  &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;&gt;  
    &lt;fileNamePattern&gt;${durga.log.file.name.SQL}.%d{${finch.log.file.DefaultRolloverFrequency}}&lt;/fileNamePattern&gt;
  &lt;/rollingPolicy&gt;
  </code></pre>
    
  <p>and the output of the log:</p>
  <pre><code>[17 Mar 2016 13:42:18.437][Server Type Entry/Amend/Cancel][durga_admin]  TRACE o.h.type.descriptor.sql.BasicBinder 83 binding parameter [3] as [VARCHAR] - durga_admin 
  [17 Mar 2016 13:42:18.438][Server Type Entry/Amend/Cancel][durga_admin]  TRACE o.h.type.descriptor.sql.BasicBinder 83 binding parameter [4] as [TIMESTAMP] - 2016-03-17 08:16:23.0 
  [17 Mar 2016 13:42:18.439][Server Type Entry/Amend/Cancel][durga_admin]  TRACE o.h.type.descriptor.sql.BasicBinder 83 binding parameter [5] as [TIMESTAMP] - 2016-03-17 08:16:23.0 
  [17 Mar 2016 13:42:18.440][Server Type Entry/Amend/Cancel][durga_admin]  TRACE o.h.type.descriptor.sql.BasicBinder 83 binding parameter [6] as [VARCHAR] - durga_admin 
  [17 Mar 2016 13:42:18.441][Server Type Entry/Amend/Cancel][durga_admin]  TRACE o.h.type.descriptor.sql.BasicBinder 83 binding parameter [7] as [INTEGER] - 0 
  </code></pre>
  <p>I do not want log when screenName = &quot;Server Type Entry/Amend/Cancel&quot;</p>
  <p>I'm using janino 2.5.10 and logback 1.1.7 and all the stuff is running on a tomcat 7.0.47</p>