winston-transport-rollbar
Forked from https://github.com/Ideame/winston-rollbar and updated to support latest reporter and maintain longer term.
A rollbar transport for winston.
Installation
$ npm install winston$ npm install winston-transport-rollbar
Usage es5
var winston = ;//// Requiring `winston-rollbar` will expose// `winston.transports.Rollbar`//Rollbar;winston;
Usage es6
;;winston;// orconst logger = transports:rollbarConfig:accessToken: serverAccessTokenenvironment: environmentreportLevel: reportLevel;
The Rollbar transport uses node-rollbar behind the scenes. Options are the following:
- rollbarConfig: Rollbar configuration (more info) (mandatory, must contain rollbarAccessToken)
- metadataAsRequest: Uses metadata object as Rollbar's request parameter. (default: false will send for meta.req if provided)
- level: Level of messages this transport should log. (default: warn).
- silent: Boolean flag indicating whether to suppress output (default: false).