https://github.com/bcherny/winston-bugsnag
A Bugsnag transport for Winston
https://github.com/bcherny/winston-bugsnag
bugsnag javascript nodejs winston
Last synced: 2 months ago
JSON representation
A Bugsnag transport for Winston
- Host: GitHub
- URL: https://github.com/bcherny/winston-bugsnag
- Owner: bcherny
- Created: 2015-03-01T19:17:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-10T19:46:52.000Z (almost 8 years ago)
- Last Synced: 2024-12-17T03:03:31.160Z (6 months ago)
- Topics: bugsnag, javascript, nodejs, winston
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Winston-Bugsnag
[Bugsnag](https://bugsnag.com) transport for [Winston](https://github.com/winstonjs/winston)
# Installation
```sh
npm install winston-bugsnag --save
```# Usage
```js
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
```js
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