title: Embedded Jetty 9 Logging with Logback
body: <p>I use <a href="http://www.eclipse.org/jetty/" rel="nofollow">jetty</a> in a maven project and logging is already in place using slf4j and logback. 
  Hence, I have a logback.xml where I configure logging and it works so far (format, setting levels for my project and libraries, ...).</p>
  
  <p>However, now that I added jetty in the pom.xml as a dependency, I get tons of new DEBUG logs which I do not want to see (usually).</p>
  
  <p>How can I set the log level for jetty to a higher level? </p>
  
  <p>At the beginning, jetty reports that it recognized slf4j:</p>
  
  <pre><code>13:08:57 [main]      [DEBUG] log - Logging to Logger[org.eclipse.jetty.util.log] via org.eclipse.jetty.util.log.Slf4jLog
  </code></pre>
  
  <p>In my logback.xml, I tried to mute jetty as follows, but it does not work:</p>
  
  <pre><code>&lt;logger name="org.eclipse.jetty" level="INFO" /&gt;
  </code></pre>
  
  <p>This does the trick for other libraries that I use. </p>
  
  <p>I read the <a href="http://www.eclipse.org/jetty/documentation/current/configuring-logging.html" rel="nofollow">jetty documentation regarding logging</a>, but they only document the use of standalone jetty - unfortunately, I was not able to adapt it for the embedded use case.</p>