@graphprotocol/pino-sentry-simple

v0.7.1
@sentry/node transport for pino logger
logger loggly logging node tools sentry transport pino

@graphprotocol/pino-sentry-simple

Forward pino logs to Sentry. A fork of pino-sentry with a few simplifications and error object handling via the err key.

Index

Install

npm install @graphprotocol/pino-sentry-simple -g

Usage

import { createWriteStream } from '@graphprotocol/pino-sentry-simple'

const opts = { /* ... */ }
const stream = createWriteStream({
  dsn: process.env.SENTRY_DSN,
  tagKeys: ['requestId'],    // optional
  excludeKeys: ['username'], // optional
})
const logger = pino(opts, stream)

License

MIT License

npm i @graphprotocol/pino-sentry-simple

Metadata

  • MIT
  • >=10
  • Jannis Pohlmann
  • released 11/14/2020

Downloads