Skip to content
This repository has been archived by the owner on Mar 18, 2018. It is now read-only.

branch-app/log-sentry-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

branch-log-sentry

Sentry integration for branch-log.

NPM Version Build Status Coverage Status

var log = require('branch-log');
var logSentry = require('branch-log-sentry');

var ravenClient; // existing Raven client

var sentryHandler = logSentry(ravenClient);
log.setHandler(sentryHandler);

Installation

$ npm install

Usage

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);

Testing

Install the development dependencies first:

$ npm install

Then the tests:

$ npm test

Support

Please open an issue on this repository.

Authors

  • Jack Fransham
  • Alex Forbes-Reed (adapted from Cuvva)

License

MIT licensed - see LICENSE file

Packages

No packages published

Languages

  • JavaScript 100.0%