sentry-winston

1.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i sentry-winston

Weekly Downloads

3

Version

1.0.6

License

Apache-2.0

Unpacked Size

16.6 kB

Total Files

4

Last publish

Collaborators

  • meshuamam