This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 5bb9cae https://bz.apache.org/bugzilla/show_bug.cgi?id=63286 access
log formats
5bb9cae is described below
commit 5bb9cae96208d56be484c465c3b96d00efae84ee
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Apr 1 12:08:42 2019 +0100
https://bz.apache.org/bugzilla/show_bug.cgi?id=63286 access log formats
Document the differences in behaviour between the LogFormat directive in
httpd and the pattern attribute in the AccessLogValve for %D and %T.
---
webapps/docs/changelog.xml | 6 ++++++
webapps/docs/config/valve.xml | 9 +++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 63a752b..b34e06c 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -79,6 +79,12 @@
that <code>HttpServletRequest.getContextPath()</code> returns an
encoded
path in the dispatched request. (markt)
</fix>
+ <fix>
+ <bug>63286</bug>: Document the differences in behaviour between the
+ <code>LogFormat</code> directive in httpd and the <code>pattern</code>
+ attribute in the <code>AccessLogValve</code> for <code>%D</code> and
+ <code>%T</code>. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
diff --git a/webapps/docs/config/valve.xml b/webapps/docs/config/valve.xml
index 43e4aad..5aae5e8 100644
--- a/webapps/docs/config/valve.xml
+++ b/webapps/docs/config/valve.xml
@@ -294,8 +294,13 @@
<li><b>%u</b> - Remote user that was authenticated (if any), else '-'</li>
<li><b>%U</b> - Requested URL path</li>
<li><b>%v</b> - Local server name</li>
- <li><b>%D</b> - Time taken to process the request, in millis</li>
- <li><b>%T</b> - Time taken to process the request, in seconds</li>
+ <li><b>%D</b> - Time taken to process the request in millis. Note: In
+ httpd %D is microseconds. Behaviour will be aligned to
httpd
+ in Tomcat 10 onwards.</li>
+ <li><b>%T</b> - Time taken to process the request, in seconds. Note: This
+ value has millisecond resolution whereas in httpd it has
+ second resolution. Behaviour will be align to httpd
+ in Tomcat 10 onwards.</li>
<li><b>%F</b> - Time taken to commit the response, in millis</li>
<li><b>%I</b> - Current request thread name (can compare later with
stacktraces)</li>
<li><b>%X</b> - Connection status when response is completed:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]