Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2014-10-30 22:29:38 -0400
committerGreg Wilkins2014-10-30 22:31:29 -0400
commite3bda4efbefa2370d7d9b594aa97dc60a2b37235 (patch)
tree43640c009e43619c5adadd402b0b62b636263f73 /jetty-server/src/main/config/etc/jetty-requestlog.xml
parent947a8722030d10f2f6a84bc90df8c1fcbbdc4df9 (diff)
downloadorg.eclipse.jetty.project-e3bda4efbefa2370d7d9b594aa97dc60a2b37235.tar.gz
org.eclipse.jetty.project-e3bda4efbefa2370d7d9b594aa97dc60a2b37235.tar.xz
org.eclipse.jetty.project-e3bda4efbefa2370d7d9b594aa97dc60a2b37235.zip
446564 Refactored RequestLog Mechanism
RequestLog can now be set on the HttpChannel and is called during the onCommitted callback. The RequestLog may be set either on the server or via an updated RequestLogHandler that can be applied to a specific context.
Diffstat (limited to 'jetty-server/src/main/config/etc/jetty-requestlog.xml')
-rw-r--r--jetty-server/src/main/config/etc/jetty-requestlog.xml34
1 files changed, 13 insertions, 21 deletions
diff --git a/jetty-server/src/main/config/etc/jetty-requestlog.xml b/jetty-server/src/main/config/etc/jetty-requestlog.xml
index 135885e7cf..6b53b53e6d 100644
--- a/jetty-server/src/main/config/etc/jetty-requestlog.xml
+++ b/jetty-server/src/main/config/etc/jetty-requestlog.xml
@@ -7,26 +7,18 @@
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- =========================================================== -->
- <!-- Configure Request Log -->
+ <!-- Configure Request Log for Server -->
+ <!-- (Use RequestLogHandler for a context specific RequestLog -->
<!-- =========================================================== -->
- <Ref refid="Handlers">
- <Call name="addHandler">
- <Arg>
- <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
- <Set name="requestLog">
- <New id="RequestLogImpl" class="org.eclipse.jetty.server.AsyncNCSARequestLog">
- <Set name="filename"><Property name="jetty.base" default="." /><Property name="requestlog.filename" default="/logs/yyyy_mm_dd.request.log"/></Set>
- <Set name="filenameDateFormat"><Property name="requestlog.filenameDateFormat" default="yyyy_MM_dd"/></Set>
- <Set name="retainDays"><Property name="requestlog.retain" default="90"/></Set>
- <Set name="append"><Property name="requestlog.append" default="false"/></Set>
- <Set name="extended"><Property name="requestlog.extended" default="false"/></Set>
- <Set name="logCookies"><Property name="requestlog.cookies" default="false"/></Set>
- <Set name="LogTimeZone"><Property name="requestlog.timezone" default="GMT"/></Set>
- </New>
- </Set>
- </New>
- </Arg>
- </Call>
- </Ref>
-
+ <Set name="RequestLog">
+ <New id="RequestLog" class="org.eclipse.jetty.server.AsyncNCSARequestLog">
+ <Set name="filename"><Property name="jetty.base" default="." /><Property name="requestlog.filename" default="/logs/yyyy_mm_dd.request.log"/></Set>
+ <Set name="filenameDateFormat"><Property name="requestlog.filenameDateFormat" default="yyyy_MM_dd"/></Set>
+ <Set name="retainDays"><Property name="requestlog.retain" default="90"/></Set>
+ <Set name="append"><Property name="requestlog.append" default="false"/></Set>
+ <Set name="extended"><Property name="requestlog.extended" default="false"/></Set>
+ <Set name="logCookies"><Property name="requestlog.cookies" default="false"/></Set>
+ <Set name="LogTimeZone"><Property name="requestlog.timezone" default="GMT"/></Set>
+ </New>
+ </Set>
</Configure>

Back to the top