Options
Menu

Class Log

Log provides logging features throught the sdk using loglevel module See https://github.com/pimterry/loglevel for documentation

Hierarchy

  • Log

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static levels

levels: LogLevelModule.LogLevel = LogLevelModule.levels

Log levels

Methods

debug

  • debug(...args: any[]): void
  • Log a debug message

    Parameters

    • Rest ...args: any[]

      Any number of arguments to be passed to loglevel.debug

    Returns void

error

  • error(...args: any[]): void
  • Log an error message

    Parameters

    • Rest ...args: any[]

      Any number of arguments to be passed to loglevel.error

    Returns void

info

  • info(...args: any[]): void
  • Log an info message

    Parameters

    • Rest ...args: any[]

      Any number of arguments to be passed to loglevel.info

    Returns void

setDefaultLevel

  • setDefaultLevel(level: LogLevelModule.LogLevelDesc): void
  • Set a default log level to disable all logging below the given level

    Parameters

    • level: LogLevelModule.LogLevelDesc

    Returns void

warn

  • warn(...args: any[]): void
  • Log a warning message

    Parameters

    • Rest ...args: any[]

      Any number of arguments to be passed to loglevel.warn

    Returns void

Static getInstance

  • getInstance(): Log
  • Create the logger singleton instance if it doesn't exists

    Returns Log

    The singleton Log instance

Generated using TypeDoc