How to capture the error to redis in node.js -


in application im using redis database node.js.now want build error capture module .how can capture error in redis.using airbrake(https://github.com/felixge/node-airbrake) can capture error how can on own using redis in node.js.

if @ code node-airbrake, you'll notice this:

airbrake.prototype.handleexceptions = function() {   var self = this;   process.on('uncaughtexception', function(err) {     self._onerror(err, true)   }); }; 

so, implement own uncaughtexception handler (although doing bad form, that's discussion) , store errors in redis.


Comments