JS Task API Reference

Module: logger

Table of contents

Functions

Functions

pinoLogger

â–¸ pinoLogger(optionsOrStream?): Logger

Golem Logger interface implementation using the Pino library https://github.com/pinojs/pino

Parameters

NameTypeDescription
optionsOrStream?LoggerOptions<never> | DestinationStreamhttps://github.com/pinojs/pino/blob/master/docs/api#options https://github.com/pinojs/pino/blob/master/docs/api#destination

Returns

Logger

Defined in

src/logger.ts:53


pinoPrettyLogger

â–¸ pinoPrettyLogger(options?): Logger

Golem Logger interface implementation using the Pino-Pretty library Default set: ignore: "pid,hostname,namespace", singleLine: true https://github.com/pinojs/pino-pretty

Parameters

NameTypeDescription
options?PrettyOptions_https://github.com/pinojs/pino-pretty?tab=readme-ov-file#options

Returns

Logger

Defined in

src/logger.ts:63