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.

Reply via email to