Skip to content

tomrogers3/meteor-winston-airbrake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor-Winston-Airbrake

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:

About

Wrapper for using winston-airbrake with Meteor

Resources

Stars

Watchers

Forks

Packages

No packages published