<?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">

<!-- =============================================================== -->
<!-- The DebugListener                                               -->
<!-- =============================================================== -->

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <New id="DebugListener" class="org.eclipse.jetty.server.DebugListener">
    <Arg name="outputStream">
      <New class="org.eclipse.jetty.util.RolloverFileOutputStream">
        <Arg type="String"><Property name="jetty.logs" default="./logs"/>/yyyy_mm_dd.debug.log</Arg>
        <Arg type="boolean"><Property name="jetty.debug.append" default="true"/></Arg>
        <Arg type="int"><Property name="jetty.debug.retainDays" default="14"/></Arg>
        <Arg>
          <Call class="java.util.TimeZone" name="getTimeZone"><Arg><Property name="jetty.debug.timezone" default="GMT"/></Arg></Call>
        </Arg>
      </New>
    </Arg>
    <Arg name="showHeaders" type="boolean"><Property name="jetty.debug.showHeaders" default="true"/></Arg>
    <Arg name="renameThread" type="boolean"><Property name="jetty.debug.renameThread" default="false"/></Arg>
    <Arg name="dumpContext" type="boolean"><Property name="jetty.debug.dumpContext" default="true"/></Arg>
  </New>
 
  <Call name="addBean"><Arg><Ref refid="DebugListener"/></Arg></Call>
 
  <Ref refid="DeploymentManager">
    <Call name="addLifeCycleBinding">
      <Arg>
        <New class="org.eclipse.jetty.deploy.bindings.DebugListenerBinding">
          <Arg><Ref refid="DebugListener"/></Arg>
        </New>
      </Arg>
    </Call>
  </Ref>
</Configure>
