Skip to content

Instantly share code, notes, and snippets.

@klizhentas
Created January 13, 2015 17:19
Show Gist options
  • Save klizhentas/96752f7a84bec70c1152 to your computer and use it in GitHub Desktop.
Save klizhentas/96752f7a84bec70c1152 to your computer and use it in GitHub Desktop.
Examples of structured logs
// HTTP, captured request and response headers
{"Req":{"Method":"GET","URL":"/hello","H":{"X-Req-A":["1","2"],"X-Req-B":["3","4"]}},"Resp":{"Code":200,"RTT":0.006653,"H":{"X-Re-1":["6","7"],"X-Re-2":["2","3"]}}}
{"Req":{"Method":"GET","URL":"/","TLS":{"V":"TLS12","Resume":false,"CS":"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256","Srv":"127.0.0.1"}},"Resp":{"Code":200,"RTT":0.002082,"H":null}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment