a bugsnag
hook for sails.js
apps (v0.11
)
npm install --save sails-hook-bugsnag
// config/bugsnag.js
module.exports.bugsnag = {
apiKey: process.env['BUGSNAG_APIKEY'], // required
enabled: true // default
options: {
// pass configuration options to bugsnag
// see https://github.com/bugsnag/bugsnag-node for more examples
}
};
Capture uncaught errors and stack traces and log them to bugsnag. Provide access to the bugsnag-node at sails.bugsnag
.
npm test
- write more tests
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) 2015 Chris Ludden
Licensed under the MIT license