You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/04/12 15:46:40 UTC

[GitHub] [trafficcontrol] rawlinp commented on issue #2664: TO Golang: Use standard format for "handled (req-id) in

rawlinp commented on issue #2664: TO Golang: Use standard format for "handled (req-id) in <time>" info log
URL: https://github.com/apache/trafficcontrol/issues/2664#issuecomment-482624341
 
 
   The `ttms` is actually logged as a field in the access log (line 1 in the snippet below), and the human-readable format is logged in the INFO log (line 2):
   ```
   [::1]:57723 - foo [12/Apr/2019:09:35:39 -0600] "GET /api/1.3/cdns/over-the-top/snapshot HTTP/1.1" 200 5323433 157 "curl/7.64.0"
   INFO: routing.go:236: 2019-04-12T09:35:39.197306-06:00: GET /api/1.3/cdns/over-the-top/snapshot handled (reqid 9330) in 157.243058ms
   ```
   This request was handled in 157 ms, which a machine can easily parse using the access log's format (which is the time in ms).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services