winston-bugsnag
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

Winston-Bugsnag

Bugsnag transport for Winston

Installation

npm install winston-bugsnag --save

Usage

import * as bugsnag from 'bugsnag'
import { add } from 'winston'
import { BugsnagTransport } from 'winston-bugsnag'
 
bugsnag.register('Bugsnag api key goes here')
add(BugsnagTransport)

Passing userId to Bugsnag

import * as bugsnag from 'bugsnag'
import { add, log } from 'winston'
import { BugsnagTransport } from './'
 
bugsnag.register('api key goes here')
add(BugsnagTransport)
 
log('info', 'something', {
  userId: 'abcdef'
})

License

MIT

Package Sidebar

Install

npm i winston-bugsnag

Weekly Downloads

74

Version

3.0.2

License

MIT

Last publish

Collaborators

  • bcherny