title: Configuring logback to suppress logging from all classes inside a package
body: <p>I have this perfectly working logback.xml for console which logs all the debug level statements. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;configuration&gt;
      &lt;property name="CONSOLE_LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } [%t] --- %-40.40logger{39} : %m%n%wex"/&gt;
      &lt;appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"&gt;
        &lt;filter class="ch.qos.logback.classic.filter.ThresholdFilter"&gt;
          &lt;level&gt;DEBUG&lt;/level&gt;
        &lt;/filter&gt;
        &lt;encoder&gt;
          &lt;pattern&gt;${CONSOLE_LOG_PATTERN}&lt;/pattern&gt;
        &lt;/encoder&gt;
      &lt;/appender&gt;
      &lt;root level="DEBUG"&gt;
        &lt;appender-ref ref="CONSOLE"/&gt;
      &lt;/root&gt;
    &lt;/configuration&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>Now I'd like modify this to suppresses logging from all the loggers from a certain package.</p>
  
  <p>For instance, say I'd like to suppress all the INFO level logs from from classes that belongs to <strong>org.apache.zookeeper</strong></p>
  
  <p>One of the solutions I found was by creating a custom filter, similar to how it's indicated here - <a href="https://stackoverflow.com/questions/10734025/logback-two-appenders-multiple-loggers-different-levels">logback: Two appenders, multiple loggers, different levels</a> . But do I really need to write java for that? </p>
  
  <pre><code>Comparing this problem to log4j, this can be easily accomplished by following  - 
  log4j.logger.org.apache.zookeeper=WARN, CONSOLE
  </code></pre>
  
  <p>Thanks in advance!.</p>