title: Log4j2 markers in Logback
body: <p>I'd like to use <a href="https://code.google.com/archive/p/log4jdbc-log4j2/" rel="nofollow">log4jdbc-log4j2</a> to log JDBC calls. The documentation providers information how to use it with Log4j2 markers.</p>
  
  <pre><code>&lt;logger name="log4jdbc.log4j2" level="info" additivity="false"&gt;
    &lt;MarkerFilter marker="LOG4JDBC_OTHER" onMatch="DENY" onMismatch="NEUTRAL"/&gt;
    &lt;appender-ref ref="Console"/&gt;
  &lt;/logger&gt;
  </code></pre>
  
  <p><strong>Is there any way how to rewrite the above code to work with Logback?</strong></p>
  
  <p><strong>UPDATE</strong>: I already tried to put a TurboFilter outside the logger directly inside the configuration element. It however doesn't change the log output.</p>
  
  <pre><code>&lt;turboFilter class="ch.qos.logback.classic.turbo.MarkerFilter"&gt;
      &lt;Name&gt;LOG4JDBC_LOGBACK_FILTER&lt;/Name&gt;
      &lt;Marker&gt;LOG4JDBC_OTHER&lt;/Marker&gt;
      &lt;OnMatch&gt;DENY&lt;/OnMatch&gt;
  &lt;/turboFilter&gt;
  </code></pre>