Created attachment 30438 [details] Patch against trunk@r1493385 to record and output time to commit Tomcat's AccessLogValve is able to report the time taken to send an entire request using %D. This is the total processing time and may be affected by network conditions. It is sometimes useful to be able to record the time taken by the server to prepare the response and send the first content to the client. Attached is a patch that records the time the response is committed and then allows that to be reported in the access log using a '%F' pattern (which is the same as used by the mod-log-firstbyte module for HTTPD).
Related post on users list: http://markmail.org/thread/vq3n2igy7q5fttc4
Generally the patch looks good to me. It is missing documentation. Other than that I see no reason not to add it to trunk and 7.0.x.
Created attachment 30473 [details] Documentation for %F AccessLogValve parameter Add documentation in the docs webapp
Created attachment 30474 [details] Documentation for %F AccessLogValve parameter Minor change to add username to bug line from previous patch
Created attachment 30475 [details] Backport to 7.0.x branch
Thanks for the patches. They have been applied (with minor modifications) to trunk and 7.0.x and will be included in 7.0.42 onwards.