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

1.0.0-rc.3 • Public • Published

Axiom Transport for Pino logger

This is the official Axiom transport for Pino.

Quickstart

Install using npm install:

npm install @axiomhq/pino

create a pino logger with Axiom configured:

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,
    },
  }),
);

then you can use the logger as usual:

logger.info('Hello from pino!');

For further examples, head over to the examples directory.

License

Distributed under the MIT License.

Package Sidebar

Install

npm i @axiomhq/pino

Weekly Downloads

5,680

Version

1.0.0-rc.3

License

MIT

Unpacked Size

14.5 kB

Total Files

13

Last publish

Collaborators

  • flbn
  • seiflotfy
  • bahlo
  • mhr3
  • lukasmalkmus
  • cdeutsch
  • kevinehosford
  • axiomneil