How to enable response time logging in Jetty 7

前端 未结 3 1322
醉话见心
醉话见心 2021-01-05 04:19

Apache and Tomcat both make it easy to log response times out to the server access log (with the %D pattern), but I\'ve been unable to find any equivalent support in Jetty,

3条回答
  •  孤街浪徒
    2021-01-05 04:30

    A good detailed explanation on how to enable response time logging through configuration is here: Monitoring latency in Jetty request log

    Summary:

    Open [JETTY HOME]/etc/jetty.xml.

    Locate section.

    Add Set name=”logLatency”>true to setter list.

    Save it and restart Jetty.

提交回复
热议问题