Skip to main content
Jump to: navigation, search

Talk:Jetty/Howto/Configure Request Logs

The example for configuring a per-webapp request log on this page doesn't seem to work for me.

On it shows a different way to configure a per-webapp request log:

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
 <Set name="handler">
   <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
     <Set name="requestLog">
       <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
         <Set name="filename"><Property name="jetty.logs" default="./logs"/>/test-yyyy_mm_dd.request.log</Arg>
         <Set name="filenameDateFormat">yyyy_MM_dd</Set>
         <Set name="LogTimeZone">GMT</Set>
         <Set name="retainDays">90</Set>
         <Set name="append">true</Set>

This did work.

Back to the top