Skip to main content
Version: 3.9

externalLoggerOptions

Index

Properties

externaloptionaldata

data?: Record<string, unknown>

Additional data to be added to each log line.

externaloptionallevel

level?: number

Sets the log level to the given value, preventing messages from less important log levels from being printed to the console. Use in conjunction with the log.LEVELS constants.

externaloptionallogger

logger?: Logger

Logger implementation to be used. Default one is log.LoggerText to log messages as easily readable strings. Optionally you can use log.LoggerJson that formats each log line as a JSON.

externaloptionalmaxDepth

maxDepth?: number

Max depth of data object that will be logged. Anything deeper than the limit will be stripped off.

externaloptionalmaxStringLength

maxStringLength?: number

Max length of the string to be logged. Longer strings will be truncated.

externaloptionalprefix

prefix?: null | string

Prefix to be prepended the each logged line.

externaloptionalsuffix

suffix?: null | string

Suffix that will be appended the each logged line.