Am 2019-04-01 um 13:10 schrieb [email protected]:
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/master by this push:
      new 924d15a  https://bz.apache.org/bugzilla/show_bug.cgi?id=63286 access 
log formats
924d15a is described below

commit 924d15aa09c590f6d1b932a90df8297d333d2b2e
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(-)

+    <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>

One more nit, %T in Tomcat isn't just writing seconds, but seconds with a fraction:

            } else {
                // second
                buf.append(Long.toString(time / 1000));
                buf.append('.');
                int remains = (int) (time % 1000);
                buf.append(Long.toString(remains / 100));
                remains = remains % 100;
                buf.append(Long.toString(remains / 10));
                buf.append(Long.toString(remains % 10));
            }
        }

That's not really obvious, I guess.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to