Skip to content

trbocom/winston-rollbar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winston-transport-rollbar-3

Forked from previous versions, simplified, and updated to support winston@3.

A rollbar transport for winston.

Installation

  $ yarn add winston
  $ yarn add winston-transport-rollbar-3

usage

const {createLogger} = require('winston');
const RollbarTransport = require('winston-transport-rollbar-3');

const rollbarConfig = {};

const logger = createLogger({
  transports: [
    new RollbarTransport({
      rollbarConfig,
      level
    })
  ]
});

Options

The Rollbar transport uses the universal rollbar.js library behind the scenes. Options are the following:

  • rollbarConfig: Rollbar configuration (more info) (mandatory, must contain rollbarAccessToken)
  • level: Level of messages this transport should log. (default: warn).

Contribute

Test

yarn test

About

A rollbar transport for winston

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • JavaScript 100.0%