A wrapper around winston-airbrake for using Airbrake transport with winston for use with Meteorite on top of Meteor :)
##Install mrt add winston-airbrake
##Usage
Winston is exposed as:
Winston
And airbrake transport is exposed as:
Winston_Airbrake
so it can be used as follows:
var options = {
"level": "warn",
"apiKey": "<airbrake api key>",
"host": "<airbrake host>",
"silent": false,
"handleExceptions": true
};
Winston.add(Winston_Airbrake, options);
Winston.info('Added winston airbrake transport');
Winston.error('Hit the airbrakes!'); // this dummy test error should show up in airbrake
See winston-airbrake documentation for more details.
Other related projects:
- [meteor-winston] (https://github.com/tomrogers3/meteor-winston)
- [meteor-winston-loggly] (https://github.com/tomrogers3/meteor-winston-loggly)