Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@axiomhq/pino

Package Overview
Dependencies
Maintainers
8
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axiomhq/pino

The official Axiom transport for Pino

  • 1.0.0-rc.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
increased by11.9%
Maintainers
8
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 20 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc