winston-transport-rollbar-3

3.2.6 • Public • Published

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

Package Sidebar

Install

npm i winston-transport-rollbar-3

Weekly Downloads

11,679

Version

3.2.6

License

MIT

Unpacked Size

5.54 kB

Total Files

10

Last publish

Collaborators

  • philipp_kastl
  • morf46
  • thiagosf
  • groodoo
  • zoellner