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
Name | Type | Description |
---|---|---|
optionsOrStream? | LoggerOptions <never > | DestinationStream | https://github.com/pinojs/pino/blob/master/docs/api#options https://github.com/pinojs/pino/blob/master/docs/api#destination |
Returns
Logger
Defined in
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
Name | Type | Description |
---|---|---|
options? | PrettyOptions_ | https://github.com/pinojs/pino-pretty?tab=readme-ov-file#options |
Returns
Logger