简体   繁体   中英

Is the latency in Jetty Access Logs measured in milliseconds by default?

I'm pretty new to Jetty and have a new web service to maintain. The access logs appear to use the default configuration and have lines like like the following one.

0:0:0:0:0:0:0:1 - - [19/Dec/2016:21:35:20 +0000] "GET /v1/customers/cust@omer.com/status HTTP/1.1" 200 65 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36" 3

I found a nice little article on the Jetty request log (ie access log) format . Unfortunately, the article doesn't state whether or not latency (the number at the end of the line - in this case 3 ) is measured in milliseconds by default. I found a blog article which states that latency is measured in ms by default but I thought that I would post this question in attempt to vet this fact.

So, does the default configuration of Jetty access logs measure latency in milliseconds?

Thanks.

Yes, log latency is measured in milliseconds .

I will see what I can do about getting the doco updated. Edit: I've put in a PR to have it changed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM