winston-bugsnag
v3.0.2
Published
Bugsnag transport for Winston
Downloads
427
Readme
Winston-Bugsnag
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