npm install winston-bugsnag --save
import * as bugsnag from 'bugsnag'
import { add } from 'winston'
import { BugsnagTransport } from 'winston-bugsnag'
bugsnag.register('Bugsnag api key goes here')
add(BugsnagTransport)
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'
})
MIT