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