mini-rest-uncaught
Simple uncaught exception handler for mini-rest
project.
Logs all uncaught exceptions except SyntaxError
(to allow filename, lineno, colno to be shown) and workaround for 'Directory not found' in require-config-all
If you have different needs regarding the functionality, please add a feature request.
Installation
npm install --save mini-rest-uncaught
Usage
var logger = ;var uncaught = {} logger; throw 'this is uncaught exception';
$ node examples/index.js 2016-03-07T23:30:58.211Z - error: [index] uncaughtException: [Error: this is uncaught exception] Error: this is uncaught exception at Object.<anonymous> at Module._compile at Object.Module._extensions..js at Module.load at Function.Module._load at Function.Module.runMain at startup at node.js:999:3
Credits
Links to package pages:
github.com npmjs.com travis-ci.org coveralls.io inch-ci.org
License
MIT