Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Created October 24, 2012 20:00
Show Gist options
  • Select an option

  • Save wolfeidau/3948453 to your computer and use it in GitHub Desktop.

Select an option

Save wolfeidau/3948453 to your computer and use it in GitHub Desktop.
winston HTTP transport output printed by a node server
2012-10-24 19:58:44 POST //notify
{ host: 'localhost:8000',
'content-type': 'application/json',
accept: 'application/json',
'content-length': '1858',
connection: 'keep-alive' }
Received body data:
{
"method": "collect",
"params": {
"level": "error",
"message": "uncaughtException",
"meta": {
"date": "Thu Oct 25 2012 06:58:44 GMT+1100 (EST)",
"process": {
"pid": 92245,
"uid": 501,
"gid": 20,
"cwd": "/Users/markw/Code/Javascript/winston-crashlog",
"execPath": "/usr/local/Cellar/node/0.8.8/bin/node",
"version": "v0.8.8",
"argv": [
"node",
"/Users/markw/Code/Javascript/winston-crashlog/httptest.js"
],
"memoryUsage": {
"rss": 20287488,
"heapTotal": 11312128,
"heapUsed": 5019320
}
},
"os": {
"loadavg": [
0.90380859375,
0.978515625,
0.90673828125
],
"uptime": 2382472
},
"trace": [
{
"column": 7,
"file": "/Users/markw/Code/Javascript/winston-crashlog/httptest.js",
"function": "",
"line": 15,
"method": null,
"native": false
},
{
"column": 26,
"file": "module.js",
"function": "Module._compile",
"line": 449,
"method": "_compile",
"native": false
},
{
"column": 10,
"file": "module.js",
"function": "Object.Module._extensions..js",
"line": 467,
"method": "Module._extensions..js",
"native": false
},
{
"column": 32,
"file": "module.js",
"function": "Module.load",
"line": 356,
"method": "load",
"native": false
},
{
"column": 12,
"file": "module.js",
"function": "Function.Module._load",
"line": 312,
"method": "Module._load",
"native": false
},
{
"column": 10,
"file": "module.js",
"function": "Module.runMain",
"line": 492,
"method": "runMain",
"native": false
},
{
"column": 9,
"file": "node.js",
"function": "process.startup.processNextTick.process._tickCallback",
"line": 244,
"method": "startup.processNextTick.process._tickCallback",
"native": false
}
],
"stack": [
"Error: Hello, winston!",
" at Object.<anonymous> (/Users/markw/Code/Javascript/winston-crashlog/httptest.js:15:7)",
" at Module._compile (module.js:449:26)",
" at Object.Module._extensions..js (module.js:467:10)",
" at Module.load (module.js:356:32)",
" at Function.Module._load (module.js:312:12)",
" at Module.runMain (module.js:492:10)",
" at process.startup.processNextTick.process._tickCallback (node.js:244:9)"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment