1.0.6 • Published 7 years ago

sentry-winston v1.0.6

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

winston-sentry NPM version Build Status

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

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago