opbeat-winston

1.0.0 • Public • Published

winston-opbeat NPM version Build Status

A winston transport that sends stuff to opbeat.

Installation

$ npm install --save opbeat-winston

Usage

var WinstonOpbeatTransport = require('opbeat-winston').default;
this.logger.add(WinstonOpbeatTransport, {opbeat:opbeatInstance}, 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 opbeat-winston

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • meshuamam