Skip to content

bcherny/winston-bugsnag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Bugsnag transport for Winston

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published