1.1.1 • Published 2 years ago

pino-airbrake-transport v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Pino Airbrake transport

NPM NPM GitHub Workflow Status

This module provides a transport for Pino that sends errors to Airbrake.

Thanks to this module you can automatically transmit logs, stacktrace and context from pino to Aibrake.io. The best part is that this happens in a worker thread so that the impact of logging is reduced to the minimum.

Install

npm

npm i pino-airbrake-transport

yarn

yarn add pino-airbrake-transport

Usage

import pino from "pino";

const logger = pino({
  transport: {
    target: "pino-airbrake-transport",
    options: {
      airbrake: {
        projectId: 1,
        projectKey: "REPLACE_ME",
        environment: "production",
        // aditional options for airbrake
        performanceStats: false,
      },
    },
    level: "info", // minimum log level that should be sent to Airbrake
  },
});

Credits

Originally forked from tomer-yechie's Sentry implementation

1.1.1

2 years ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago