@axiomhq/pino
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Axiom transport for Pino logger

The Axiom transport for Pino logger allows you to send data from a Node.js app to Axiom through Pino.

import pino from 'pino';

const logger = pino(
  { level: 'info' },
  pino.transport({
    target: '@axiomhq/pino',
    options: {
      dataset: process.env.AXIOM_DATASET,
      token: process.env.AXIOM_TOKEN,
    },
  }),
);

Install

npm install @axiomhq/pino

Documentation

For more information about how to set up and use the Axiom transport for Pino logger, see the axiom.co/docs/guides/pino.

License

MIT

Package Sidebar

Install

npm i @axiomhq/pino

Weekly Downloads

14,605

Version

1.3.0

License

MIT

Unpacked Size

15.3 kB

Total Files

13

Last publish

Collaborators

  • gabrielelpidio
  • flbn
  • seiflotfy
  • bahlo
  • mhr3
  • lukasmalkmus
  • kevinehosford