Jetty 9.3 access logging recommended configuration

Scott Koranda skoranda at gmail.com
Thu Nov 19 10:28:46 EST 2015


>      I'm continuing to investigate.
> 
> 
> I think I found a hint:
> 
> https://github.com/eclipse/jetty.project/commit/
> e3bda4efbefa2370d7d9b594aa97dc60a2b37235
> 
> I'm going to try that and follow up.

Thanks.

For the record I have been trying to set on the server
following the jetty-requestlog.xml example distributed with
9.3. 

My last try was the simple-minded

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <Set name="requestLog">
    <New id="RequestLogImpl" class="ch.qos.logback.access.jetty.RequestLogImpl">
      <Set name="fileName"><Property name="jetty.base" default="." />/resources/logback-access.xml</Set>
    </New>
  </Set>
</Configure>

I have not tried a handler on a specific context, only because I would 
prefer a server wide access log (since I like to serve some static things
off to the side in a different context but would like to see the 
access logs for those too).

HTH,

Scott K


More information about the dev mailing list