Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Logger

Index

Constructors

  • new Logger(level?: string): Logger

Properties

level: string = 'verbose'

Methods

  • debug(...args: any[]): void
  • Same as console.debug. Will not log if level is 'error' or 'off'

    Parameters

    • Rest ...args: any[]

    Returns void

  • error(...args: any[]): void
  • Same as console.error. Will always log

    Parameters

    • Rest ...args: any[]

    Returns void

  • info(...args: any[]): void
  • Same as console.info. Will not log if level is 'error' or 'off'

    Parameters

    • Rest ...args: any[]

    Returns void

  • log(...args: any[]): void
  • Same as console.log. Will not log if level is 'error' or 'off'

    Parameters

    • Rest ...args: any[]

    Returns void

  • logIfEnabled(method: keyof Console, ...args: any[]): void
  • Parameters

    • method: keyof Console
    • Rest ...args: any[]

    Returns void

  • trace(...args: any[]): void
  • Same as console.trace. Will always log

    Parameters

    • Rest ...args: any[]

    Returns void

  • warn(...args: any[]): void
  • Same as console.warn. Will not log if level is 'error' or 'off'

    Parameters

    • Rest ...args: any[]

    Returns void

Generated using TypeDoc