Skip to main content
Jump to: navigation, search

Talk:Jetty/Howto/Configure Request Logs

Revision as of 18:12, 7 October 2011 by Fjania.gmail.com (Talk | contribs) (New page: The example for configuring a per-webapp request log on this page doesn't seem to work for me. On http://wiki.eclipse.org/Jetty/Tutorial/RequestLog it shows a different way to configure ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

On http://wiki.eclipse.org/Jetty/Tutorial/RequestLog 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>
       </New>
     </Set>
   </New>
 </Call>
 ...
</Configure>

This did work.

Back to the top