Skip to main content

LoggerFunction

Hierarchy

Callable

  • LoggerFunction(metadata: LogMetadata, message: string, ...params: unknown[]): void
  • LoggerFunction(message: string, ...params: unknown[]): void

  • Log a message to the console and interpolate with the parameters, while also providing a metadata object to include with the log item.

Index

Properties

debug

Log a message with the debug log level.

disable

disable: () => void

Disable all logger messages from logging to the console.

enable

enable: () => void

Enable all logger messages to log the console.

error

Log a message with the error log level.

info

Log a message with the info log level.

log

Log a message with the log log level.

trace

Log a message with the trace log level.

warn

Log a message with the warn log level.