Sentry integration for branch-log.
var log = require('branch-log');
var logSentry = require('branch-log-sentry');
var ravenClient; // existing Raven client
var sentryHandler = logSentry(ravenClient);
log.setHandler(sentryHandler);
$ npm install
Also supports taking a callback. This allows you to ensure logs have reached Sentry before exiting:
var fatalHandler = logSentry(ravenClient, function () {
process.exit(1);
});
log.setHandler('fatal', fatalHandler);
Install the development dependencies first:
$ npm install
Then the tests:
$ npm test
Please open an issue on this repository.
- Jack Fransham
- Alex Forbes-Reed (adapted from Cuvva)
MIT licensed - see LICENSE file