Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Logger

Logger defines how to write logs for different logging level.

Hierarchy

  • Logger

Implemented by

Index

Methods

debug

  • debug(debugFunction: string | (() => string)): void
  • Calls [[debugFunction]] only if the log level is debug and emits the resulting string. Use the debug level to dump large or verbose messages that could slow down performance.

    Parameters

    • debugFunction: string | (() => string)

    Returns void

error

  • error(msg: string): void
  • Emits an error message if the log level is equal to or lower than error level.

    Parameters

    • msg: string

    Returns void

getLogLevel

info

  • info(msg: string): void
  • Emits an info message if the log level is equal to or lower than info level.

    Parameters

    • msg: string

    Returns void

setLogLevel

warn

  • warn(msg: string): void
  • Emits a warning message if the log level is equal to or lower than warn level.

    Parameters

    • msg: string

    Returns void

Generated using TypeDoc