sentry-winston
v1.0.6
Published
A winston transport that sends stuff to sentry.
Downloads
3
Readme
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