From cf750e42232cb084da5379b446e7830c462b31ac Mon Sep 17 00:00:00 2001 From: rjung Date: Sun, 19 Jun 2011 11:22:20 +0000 Subject: [PATCH] Add new timestamp formatting info to AccessLogValve docs. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1137338 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/config/valve.xml | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/webapps/docs/config/valve.xml b/webapps/docs/config/valve.xml index 546c3e857..c32786d9a 100644 --- a/webapps/docs/config/valve.xml +++ b/webapps/docs/config/valve.xml @@ -209,8 +209,9 @@

- There is also support to write information from the cookie, incoming - header, the Session or something else in the ServletRequest. + There is also support to write information incoming or outgoing + headers, cookies, session or request attributes and special + timestamp formats. It is modeled after the apache syntax:

+

All formats supported by SimpleDateFormat are allowed in %{xxx}t. + In addition the following extensions have been added: +

+ These formats can not be mixed with SimpleDateFormat formats in the same format + token.

+ +

Furthermore one can define whether to log the timestamp for the request start + time or the response finish time: +

+ By adding multiple %{xxx}t tokens to the pattern, one can + also log both timestamps.

-

The shorthand pattern name common (which is also the - default) corresponds to '%h %l %u %t "%r" %s %b'.

+

The shorthand pattern pattern="common" + corresponds to the Common Log Format defined by + '%h %l %u %t "%r" %s %b'.

-

The shorthand pattern name combined appends the - values of the Referer and User-Agent headers, - each in double quotes, to the common pattern - described in the previous paragraph.

+

The shorthand pattern pattern="combined" + appends the values of the Referer and User-Agent + headers, each in double quotes, to the common pattern.

-- 2.11.0