パッケージの詳細

winston-transport-rollbar-3

zoellner31.9kMIT3.2.6

An updated rollbar transport for winston

logging, sysadmin, tools, winston

readme

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

更新履歴

3.2.2 / 2022-12-07

3.2.1 / 2022-12-06

  • dependency updates

3.2.0 / 2020-09-23

  • dependency updates

3.1.0 / 2019-05-14

  • dependency updates

3.0.2 / 2019-03-13

  • Fix stream not being flushed (@xzyfer)

3.0.1 / 2018-11-01

  • simplified and updated for winston@3
  • separate npm package winston-transport-rollbar-3

0.6.2 / 2016-08-23

  • updated rollbar reference to 0.6.2
  • using reportMessageWithPayloadData when logging messages, rather than just reportMessage
  • updating to es6 and transpiling prior to publish

0.2.0 / 2015-08-22

  • updated rollbar reference to 0.5.6 (PR by @pcothenet)

0.1.3 / 2014-08-29

  • allow sending meta.req as a getter function (PR by @benjamine)

0.1.2 / 2013-07-18

  • updated rollbar npm version to 0.3.2

0.1.1 / 2013-07-18

  • initial release