1<?xml version="1.0"?>
2<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
3
4
5<!-- =============================================================== -->
6<!-- Configure stderr and stdout to a Jetty rollover log file        -->
7<!-- this configuration file should be used in combination with      -->
8<!-- other configuration files.  e.g.                                -->
9<!--    java -jar start.jar etc/jetty-logging.xml                    -->
10<!-- =============================================================== -->
11<Configure id="Server" class="org.eclipse.jetty.server.Server">
12
13    <New id="ServerLog" class="java.io.PrintStream">
14      <Arg>
15        <New class="org.eclipse.jetty.util.RolloverFileOutputStream">
16          <Arg><Property name="jetty.logs" default="./logs"/>/yyyy_mm_dd.stderrout.log</Arg>
17          <Arg type="boolean">false</Arg>
18          <Arg type="int">90</Arg>
19          <Arg><Call class="java.util.TimeZone" name="getTimeZone"><Arg>GMT</Arg></Call></Arg>
20          <Get id="ServerLogName" name="datedFilename"/>
21        </New>
22      </Arg>
23    </New>
24
25    <Call class="org.eclipse.jetty.util.log.Log" name="info"><Arg>Redirecting stderr/stdout to <Ref id="ServerLogName"/></Arg></Call>
26    <Call class="java.lang.System" name="setErr"><Arg><Ref id="ServerLog"/></Arg></Call>
27    <Call class="java.lang.System" name="setOut"><Arg><Ref id="ServerLog"/></Arg></Call>
28
29</Configure>
30
31
32
33