Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2e47a5f9ffc80412d0a89f62fe2ca8c12fe4f362 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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>

Back to the top