Additional settings and Pino Transports to apply to the returned Logger.

interface LoggerAppExtras {
    logBaseDir?: string;
    logDefaultPath?: string;
    pretty?: PrettyOptionsExtra;
    destinations?: LogLevelStreamEntry[];
    pino?: PinoLoggerOptions;
}

Hierarchy (view full)

Properties

logBaseDir?: string

The base path to use when parsing file logging options.

FileOptions

'CWD'
logDefaultPath?: string

The default path to use when parsing file logging options.

If this path is relative it is joined with logBaseDir

FileOptions

'./logs/app.log'

Additional pino-pretty options that are applied to the built-in console/log streams

destinations?: LogLevelStreamEntry[]

Additional logging destinations to use alongside the built-in console/log stream. These can be any created by buildDestination* functions or other Pino Transports

Additional Pino Log options that are passed to pino() on logger creation