Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 52b4bdb38efb2ccc2ef2f02dc8c6a46ea69fbe70 (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
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">

<!-- =============================================================== -->
<!-- Mixin the DebugHandler                                          -->
<!-- =============================================================== -->


<Configure id="Server" class="org.eclipse.jetty.server.Server">
    <Get id="oldhandler" name="handler"/>
    <Set name="handler">
      <New id="DebugHandler" class="org.eclipse.jetty.server.handler.DebugHandler">
        <Set name="handler"><Ref refid="oldhandler"/></Set>
	<Set 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">true</Arg> <!-- append -->
	    <Arg type="int">90</Arg> <!-- retain days -->
	  </New>
	</Set>
      </New>
    </Set>
</Configure>

Back to the top