sentry-winston
1.0.6 • Public • Published winston-sentry
A winston transport that sends stuff to sentry.
Installation
$ npm install --save sentry-winston
Usage
var WinstonSentryTransport = require('sentry-winston').default;
this.logger.add(WinstonSentryTransport, {sentry:sentryInstance}, false);
this.logger.log(level, "This is a message");
this.logger.log(level, "This is an error", {error:new Error("I'm an error")});
var error = new Error("I'm an error");
var info = {extraInfo: "extra info should be in an info field"};
this.logger.log(level, "This is an error with extra metadata", {error, info});
License
Apache-2.0 © Omer Gelbard
Package Sidebar
Install
Weekly Downloads