Options
All
  • Public
  • Public/Protected
  • All
Menu

Simple logger used for both CLI and browser use.

Hierarchy

  • Logger

Index

Constructors

Properties

impl: Console = console

The actual "console" implementation to use.

Methods

  • clear(): void
  • debug(...parms: any[]): void
  • Normal debug logging. Enabled only if debug is enabled.

    Parameters

    • Rest ...parms: any[]

      logging parameters

    Returns void

  • error(...parms: any[]): void
  • Error logging. Enabled unless in silent mode.

    Parameters

    • Rest ...parms: any[]

      logging parameters

    Returns void

  • fatal(...parms: any[]): void
  • "Fatal" logging. Enabled unless in silent mode.

    Parameters

    • Rest ...parms: any[]

      logging parameters

    Returns void

  • info(...parms: any[]): void
  • Info logging. Enabled by default.

    Parameters

    • Rest ...parms: any[]

      logging parameters

    Returns void

  • log(...parms: any[]): void
  • Standard console logging.

    Parameters

    • Rest ...parms: any[]

      logging parameters

    Returns void

  • setDebug(): void
  • setInfo(): void
  • setQuiet(): void
  • setSilent(): void
  • trace(...parms: any[]): void
  • Chatty debug logging. Enabled only if debug is enabled.

    Parameters

    • Rest ...parms: any[]

      logging parameters

    Returns void

  • warn(...parms: any[]): void
  • Warning logging. Enabled by default.

    Parameters

    • Rest ...parms: any[]

      logging parameters

    Returns void

Generated using TypeDoc