[logback-dev] [JIRA] (LOGBACK-1345) Support %F in access logs for time to first byte

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Oct 6 10:09:00 CEST 2017


Mat Mannion created LOGBACK-1345:
------------------------------------

             Summary: Support %F in access logs for time to first byte
                 Key: LOGBACK-1345
                 URL: https://jira.qos.ch/browse/LOGBACK-1345
             Project: logback
          Issue Type: New Feature
          Components: logback-access
         Environment: Tomcat 8.5
            Reporter: Mat Mannion
            Assignee: Logback dev list


Currently [PatternLayout|https://logback.qos.ch/xref/ch/qos/logback/access/PatternLayout.html] supports {{%D}} for the total elapsed time (i.e. the time, in milliseconds, that the request was first received, to the time the last byte was sent to the client) but doesn't support {{%F}}, which is the time to the first byte being sent to the client.

The [implementation in Tomcat|https://github.com/apache/tomcat/blob/91c3e7b61f3289dba83e35569c5d06a0c140c22b/java/org/apache/catalina/valves/AbstractAccessLogValve.java#L1255] appears, on the face of it, reasonably simple to replicate in {{AccessEvent}}



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list