# sentry-logger

> A Sentry transport for Winston

Latest version **3.0.9** (published 2016-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install sentry-logger
pnpm add sentry-logger
yarn add sentry-logger
bun add sentry-logger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.9 |
| Published | 2016-11-18 |
| First published | 2014-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 56 |
| Author | David Ellis |
| Maintainers | raynos, uber |
| Keywords | winston, transport, sentry |

## Links

- npm: https://www.npmjs.com/package/sentry-logger
- Repository: https://github.com/uber/sentry-logger
- Issues: https://github.com/uber/sentry-logger/issues
- npm.io page: https://npm.io/package/sentry-logger

## Dependencies (5)

- [xtend](https://npm.io/package/xtend.md) ^4.0.0
- [uber-raven](https://npm.io/package/uber-raven.md) ^0.6.3-project-name
- [core-util-is](https://npm.io/package/core-util-is.md) ^1.0.1
- [winston-uber](https://npm.io/package/winston-uber.md) ^1.0.0
- [json-stringify-safe](https://npm.io/package/json-stringify-safe.md) ~5.0.0

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 3.0.9 (latest) — 2016-11-18
- 3.0.8 — 2016-11-18
- 3.0.7 — 2016-11-14
- 3.0.6 — 2016-11-12
- 3.0.5 — 2016-11-12
- 3.0.4 — 2016-06-22
- 3.0.3 — 2015-06-18
- 3.0.2 — 2015-05-23
- 3.0.1 — 2015-05-23
- 3.0.0 — 2015-03-12
- 2.1.0 — 2014-12-31
- 2.0.1 — 2014-10-16

## 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

---
_Source: https://npm.io/package/sentry-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
