JSPM

pino-axiom-transport

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22088F
  • License ISC

Basic Axiom transport for Pino

Package Exports

  • pino-axiom-transport

Readme

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