Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Good logging examples
data: {
"event": "response",
"timestamp": 1436046421423,
"id": "1436046421423:jdelamotte:5282:ibpkyk17:10001",
"instance": "http://jdelamotte:8888",
"labels": [],
"method": "get",
"path": "/js/bundle.js",
"query": {},
"responseTime": 8,
"statusCode": 304,
"pid": 5282,
"source": {
"remoteAddress": "127.0.0.1",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36",
"referer": "http://localhost:8888/"
},
"log": [
{
"request": "1436046421423:jdelamotte:5282:ibpkyk17:10001",
"timestamp": 1436046421424,
"tags": [
"received"
],
"data": {
"id": "1436046421423:jdelamotte:5282:ibpkyk17:10001",
"method": "get",
"url": "/js/bundle.js",
"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
},
"internal": true
},
{
"request": "1436046421423:jdelamotte:5282:ibpkyk17:10001",
"timestamp": 1436046421428,
"tags": [
"handler"
],
"data": {
"msec": 2.297545999288559
},
"internal": true
},
{
"request": "1436046421423:jdelamotte:5282:ibpkyk17:10001",
"timestamp": 1436046421431,
"tags": [
"response"
],
"internal": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.