# bunyan-sentry-stream

> Write log to Sentry/Raven by using Bunyan

Latest version **1.2.1** (published 2017-09-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bunyan-sentry-stream
pnpm add bunyan-sentry-stream
yarn add bunyan-sentry-stream
bun add bunyan-sentry-stream
```

## 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 | 1.2.1 |
| Published | 2017-09-11 |
| First published | 2016-02-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.8.4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Chauffeur-Privé |
| Maintainers | cptechadmin |
| Keywords | bunyan, sentry, raven, log |

## Links

- npm: https://www.npmjs.com/package/bunyan-sentry-stream
- Repository: https://github.com/transcovo/bunyan-sentry-stream
- Homepage: https://github.com/transcovo/bunyan-sentry-stream#readme
- Issues: https://github.com/transcovo/bunyan-sentry-stream/issues
- npm.io page: https://npm.io/package/bunyan-sentry-stream

## Dependencies (1)

- [lodash.omit](https://npm.io/package/lodash.omit.md) 4.5.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.2.1 (latest) — 2017-09-11
- 1.2.0 — 2017-09-07
- 1.1.0 — 2017-02-16
- 1.0.2 — 2016-04-22
- 1.0.1 — 2016-02-15
- 1.0.0 — 2016-02-15

## README

# Bunyan Sentry Stream

[![Coverage Status](https://coveralls.io/repos/github/transcovo/bunyan-sentry-stream/badge.svg?branch=master)](https://coveralls.io/github/transcovo/bunyan-sentry-stream?branch=master)
[![Circle CI](https://circleci.com/gh/transcovo/bunyan-sentry-stream/tree/master.svg?style=svg&circle-token=e6e71b05673a545e6d3ee2b9a50a325a66858e95)](https://circleci.com/gh/transcovo/bunyan-sentry-stream/tree/master)

Write log to Sentry/Raven by using Bunyan

## Install & Use

```sh
npm i --save
```

How to :

```js

const raven = require('raven');
const bunyan = require('bunyan');
const sentryStream = require('bunyan-sentry-stream');

const client = new raven.Client(process.env.SENTRY_DSN, { /* EXTRAS */ });

const simpleLogger = bunyan.createLogger({
  name: 'logger',
  streams: [
    {
      level: 'debug',
      stream: process.stdout
    },
    sentryStream(client)
  ]
});

// OR //

const SentryStream = require('bunyan-sentry-stream').SentryStream;

const advancedLogger = bunyan.createLogger({
  name: 'logger',
  streams: [
    {
      level: 'debug',
      type: 'raw', // Mandatory type for SentryStream
      stream: new SentryStream(client)
    }
  ]
});

```

## Contribute

```sh
npm test          # start test suites (coverage + lint + mocha)
npm run coverage  # run the code coverage tool
npm run lint      # execute linter tool
npm run mocha     # run the tests
```

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