This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push: new 6b2a5a0 https://bz.apache.org/bugzilla/show_bug.cgi?id=63286 access log formats 6b2a5a0 is described below commit 6b2a5a05da67e54a5f09dce947ef226f5471bb4f Author: Mark Thomas <ma...@apache.org> 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 c1526fd..60ff2df 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -120,6 +120,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 9c16436..31069d9 100644 --- a/webapps/docs/config/valve.xml +++ b/webapps/docs/config/valve.xml @@ -287,8 +287,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> </ul> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org