Class Logger

Logger class

Constructors

Properties

prefix?: string
internal: Logger = ...

Methods

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • level: LogLevel
    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Parameters

    • message: string
    • Rest...parameters: any[]

    Returns void

  • Forces color in logging output, even if it seems like color is unsupported.

    Returns void

  • Turns on debug level logging. Off by default.

    Parameters

    • enabled: boolean = true

      {boolean}

    Returns void

  • Turns on inclusion of timestamps in log messages. On by default.

    Parameters

    • enabled: boolean = true

      {boolean}

    Returns void

  • Creates a new Logging device with a specified prefix.

    Parameters

    • prefix: string

      {string} - the prefix of the logger

    Returns Logging