interface PinoLoggerOptions
Since 0.1.0

Options for constructing a PinoLogger.

Properties

readonly
optional
level: LogLevel

Minimum level to emit. Defaults to 'info'.

readonly
optional
redact: readonly string[]

Dot-paths to redact from metadata, delegated to Pino's built-in redaction.

readonly
optional
bindings: LogMetadata

Bindings merged into every entry produced by this logger.

Since 0.1.0
readonly
optional
pinoFactory: PinoFactory

Inject a pre-loaded Pino factory, bypassing the import('npm:pino@10.x') path. Useful for tests and environments where the module is already available in-memory.

Usage

import { type PinoLoggerOptions } from "logger-plugin/src/index.ts";