title: How to enable wire logging in Jetty Server
body: <p>We have a service which uses <a href="http://eclipse.org/jetty/" rel="nofollow">Jetty Server</a> 7.6.0</p>
  
  <p>I am trying to enable wire logging by putting following configuration</p>
  
  <pre><code>&lt;!-- Configure an appender for the wire log--&gt;
                  &lt;prop key="log4j.appender.WIRE"&gt;org.apache.log4j.DailyRollingFileAppender&lt;/prop&gt;
                  &lt;prop key="log4j.appender.WIRE.Threshold"&gt;TRACE&lt;/prop&gt;
                  &lt;prop key="log4j.appender.WIRE.File"&gt;${root}/var/output/logs/wire.log&lt;/prop&gt;
                  &lt;prop key="log4j.appender.WIRE.DatePattern"&gt;&amp;apos;.&amp;apos;yyyy-MM-dd-HH&lt;/prop&gt;
                  &lt;prop key="log4j.appender.WIRE.Append"&gt;true&lt;/prop&gt;
                  &lt;prop key="log4j.appender.WIRE.Encoding"&gt;UTF8&lt;/prop&gt;
                  &lt;prop key="log4j.appender.WIRE.layout"&gt;org.apache.log4j.PatternLayout&lt;/prop&gt;
                  &lt;prop key="log4j.appender.WIRE.layout.ConversionPattern"&gt;%d{DATE} [%p] %X{RequestId} (%t) %c:%m%n&lt;/prop&gt;
  
                  &lt;!-- Adjust log levels --&gt;
                  &lt;prop key="log4j.logger.WIRE"&gt;TRACE, WIRE&lt;/prop&gt;
  </code></pre>
  
  <p>When I start the server, wire.log file is getting created but it is not printing anything from my requests into the log file.</p>
  
  <p>I wanted to know is wire logging something specific to Tomcat ? If no , any idea how to enable it in Jetty?</p>
  
  <p>Thanks,</p>
  
  <p>Vishal</p>