https://github.com/seldszar/pino-raven
Raven stream for Pino.
https://github.com/seldszar/pino-raven
javascript pino raven sentry stream
Last synced: about 2 months ago
JSON representation
Raven stream for Pino.
- Host: GitHub
- URL: https://github.com/seldszar/pino-raven
- Owner: Seldszar
- License: mit
- Created: 2018-06-22T13:03:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-22T13:29:56.000Z (almost 7 years ago)
- Last Synced: 2025-01-18T00:12:17.488Z (3 months ago)
- Topics: javascript, pino, raven, sentry, stream
- Language: JavaScript
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pino-raven
Raven stream for Pino.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Author](#author)
- [License](#license)## Installation
```bash
npm install pino-raven --save
```## Usage
### By using the global Raven client.
```javascript
const pino = require('pino');
const pinoRaven = require('pino-raven');const logger = pino({}, pinoRaven());
```### By using a local Raven client.
```javascript
const pino = require('pino');
const pinoRaven = require('pino-raven');
const Raven = require('raven');const client = new Raven.Client();
const logger = pino({}, pinoRaven({ client }));
```## Author
Alexandre Breteau - [@0xSeldszar](https://twitter.com/0xSeldszar)
## License
MIT © [Alexandre Breteau](https://seldszar.fr)