Hi,

The jetty.xml in SMX etc folder is used by OPS4J pax-web, which leverage the Jetty. Per the issue tracked here[1], you can configure etc/ org.ops4j.pax.web.cfg to enable jetty NCSARequestLog, but this is only from pax-web 1.1.0, however SMX 4.4.1 still use pax-web 1.0.x, so you can use it yet with SMX 4.4.1.

[1]http://team.ops4j.org/browse/PAXWEB-269

Freeman
On 2012-3-13, at 下午10:08, londonukm wrote:

Hi,

As part of my migration from 1.0.0 to 4.4.1 I have a question regarding the
configuration of NCASRequestLog in the Jetty bundle included in the
Servicemix. Previously I used to override the settings in a customhttpjetty endpoint bundle in order to get my NCASRequestLog running, however I have
noticed a Jetty.xml in the etc folder of the Servicemix.

Am I right in assuming I can update this file in order to override the
settings of all Jetty instances in the Servicemix to produce NCAS formatted
logs as below?

   <Set name="handler">
     <New id="Handlers"
class="org.eclipse.jetty.server.handler.HandlerCollection">
       <Set name="handlers">
         <Array type="org.eclipse.jetty.server.Handler">
           <Item>

             <New id="RequestLog"
class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
           </Item>
         </Array>
       </Set>
     </New>
   </Set>

   <Ref id="RequestLog">
     <Set name="requestLog">
       <New id="RequestLogImpl"
class="org.eclipse.jetty.server.NCSARequestLog">

         <Set name="filename"><SystemProperty name="jetty.logs"
default="data/log"/>/yyyy_mm_dd.request.log</Set>


         <Set name="filenameDateFormat">yyyy_MM_dd</Set>


         <Set name="retainDays">90</Set>


         <Set name="append">true</Set>


         <Set name="extended">false</Set>


         <Set name="logCookies">false</Set>


         <Set name="LogTimeZone">GMT</Set>
       </New>
     </Set>
   </Ref>

Many Thanks

Graham

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Servicemix-4-4-1-Jetty-NCAS-Logging-configuration-tp5561019p5561019.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to