Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@loglayer/transport-pino

loglayer58.7kMIT2.2.1TypeScript support: included

Pino transport for the LogLayer logging library.

logging, log, loglayer, pino, transport

readme

Pino Transport for LogLayer

NPM Version NPM Downloads TypeScript

The Pino transport for the LogLayer logging library.

Pino is a very low overhead Node.js logger, focused on performance.

Installation

npm install loglayer @loglayer/transport-pino pino

Usage

import pino, { P } from 'pino'
import { LogLayer } from 'loglayer'
import { PinoTransport } from "@loglayer/transport-pino"

const p = pino({
  level: 'trace'  // Enable all log levels
})

const log = new LogLayer({
  transport: new PinoTransport({
    logger: p
  })
})

Documentation

For more details, visit https://loglayer.dev/transports/pino

changelog

LogLayer Changelog

Please visit the What's New page for latest updates.

Visit the home page to see changelog links for LogLayer packages.