Skip to content

qlaffont/pino-axiom

Repository files navigation

pino-axiom

A simple library to add log from Pino to Axiom.

How to use

import pino from 'pino';

const logger = pino({
  transport: {
    target: 'pino-axiom',
    options: {
      orgId: 'YOUR-ORG-ID', // Can be found on settings page
      token: 'YOUR-TOKEN', // Can be generated on settings > API Tokens
      dataset: 'YOUR-DATASET', // Can be created on /datasets
    },
  },
});

Tests

To execute jest tests (all errors, type integrity test)

pnpm test

Maintain

This package use TSdx. Please check documentation to update this package.

About

A simple library to add log from Pino to Axiom.

Resources

License

Stars

Watchers

Forks

Packages

No packages published