BugsRadar

pino transport

Updated 1 October 2026 · BugsRadar team

A transport from the bugsradar package for pino: error and fatal entries go to your channels, with the error in err as the exception and the other fields as properties.

Install the package first: see Install. pino runs transports in a worker thread, so this one gets the key in its options rather than the client. The key is secret: where it may go.

Add the transport

logger.js
import pino from 'pino';

export const logger = pino({
  transport: {
    targets: [
      { target: 'pino/file', options: { destination: 1 } },
      { target: 'bugsradar/pino', level: 'error', options: { apiKey: process.env.BUGSRADAR_KEY } },
    ],
  },
});

logger.error({ err: error, orderId }, 'Order failed');

What arrives

The transport sends error and fatal entries; to send warnings too, add level: 'warn' to its options. The error in err travels as the exception, with its stack; the other fields become the event's properties.

What the message looks like in the chat, how repeats are counted and when errors are bundled: see What you receive.

Next: BugsRadar for Python →