Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

MadKudu/winston-rollbar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winston-rollbar Build Status

A rollbar transport for winston.

Installation

  $ npm install winston
  $ npm install winston-rollbar

Usage

  var winston = require('winston');

  //
  // Requiring `winston-rollbar` will expose
  // `winston.transports.Rollbar`
  //
  require('winston-rollbar').Rollbar;

  winston.add(winston.transports.Rollbar, options);

The Rollbar transport uses node-rollbar behind the scenes. Options are the following:

  • rollbarAccessToken: Rollbar post server item access token.
  • rollbarConfig: Rollbar configuration (more info) (optional).
  • 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).

About

A rollbar transport for winston

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%