Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Logger

Logging facility

A simple text logging facility, much like the browser console.log() API and friends. An instance of this interface is available to a extension via the ExtensionContext object passed to each extension's activate() function.

Hierarchy

  • Logger

Index

Methods

debug

  • debug(msg: any, ...opts: any[]): void
  • Log a debug message.

    Parameters

    • msg: any

      the log message

    • Rest ...opts: any[]

    Returns void

endTime

  • endTime(label: string): void
  • Ends timing.

    Prints the timing result to the log. Label should be the same as the label given to startTime().

    Parameters

    • label: string

      identifying label for the timer to end

    Returns void

info

  • info(msg: any, ...opts: any[]): void
  • Log an info message.

    Parameters

    • msg: any

      the log message

    • Rest ...opts: any[]

    Returns void

severe

  • severe(msg: any, ...opts: any[]): void
  • Log a severe message.

    Parameters

    • msg: any

      the log message

    • Rest ...opts: any[]

    Returns void

startTime

  • startTime(label: string): void
  • Starts timing.

    See endTime().

    Parameters

    • label: string

      identifying label for this timer

    Returns void

warn

  • warn(msg: any, ...opts: any[]): void
  • Log a warning message.

    Parameters

    • msg: any

      the log message

    • Rest ...opts: any[]

    Returns void

Generated using TypeDoc