@loglayer/transport-pino
v1.0.9
Published
Pino transport for loglayer.
Downloads
949
Maintainers
Readme
Pino Transport for LogLayer
The Pino transport for LogLayer.
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