cuvva-log-sentry

0.6.0 • Public • Published

cuvva-log-sentry

Sentry integration for cuvva-log.

NPM Version Build Status Coverage Status

var log = require('cuvva-log');
var logSentry = require('cuvva-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

License

MIT licensed - see LICENSE file

Readme

Keywords

none

Package Sidebar

Install

npm i cuvva-log-sentry

Weekly Downloads

0

Version

0.6.0

License

MIT

Unpacked Size

4.8 kB

Total Files

6

Last publish

Collaborators

  • billinghamj
  • cuvva-old
  • g-wilson