1.0.0 • Published 1 year ago

pino-axiom-transport v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Pino Axiom Transport

This is a very basic transport to Axiom for Pino. It is using the fetch API to ensure support for Edge runtimes such as Vercel Edge and Cloudflare Workers. If you are using this in an environment which does not have access to the fetch api, you will have to polyfill it globally.

Usage

import pinoFactory from 'pino';

const logger = pinoFactory({
  transport: {
    pipeline: [{
      target: 'pino-axiom-transport',
      options: {
        dataset: process.env.AXIOM_DATASET,
        token: process.env.AXIOM_TOKEN,
      },
    }],
  },
});
1.0.0

1 year ago