https://github.com/uber/sentry-logger
A Sentry transport for Winston
https://github.com/uber/sentry-logger
Last synced: 9 months ago
JSON representation
A Sentry transport for Winston
- Host: GitHub
- URL: https://github.com/uber/sentry-logger
- Owner: uber
- License: mit
- Created: 2014-10-14T23:37:35.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-07T17:40:59.000Z (about 7 years ago)
- Last Synced: 2025-03-04T17:04:56.885Z (10 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 56
- Watchers: 2,673
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# winston-sentry
A [sentry]() transport for [winston]()
## Usage
```js
var winston = require('winston');
winston.transports.Sentry = require('winston-sentry');
winston.add(winston.transports.Sentry, options);
```
The Sentry transport takes the following options:
* `enabled` - Flag for explicitly enabling or disabling the transport (enabled by default).
* `dsn` - The dsn URL the sentry client uses to connect to Sentry.
## Install
```sh
npm install winston winston-sentry
```
## Testing
The tests assume you have a sentry server running on the default port on localhost. Work to mock sentry for the tests is ongoing. Tests are run with a simple:
```sh
npm test
```
## MIT Licensed