Options
All
  • Public
  • Public/Protected
  • All
Menu

Logger that writes to stderr when running under node, and uses the corresponding console.* method to log in the browser.

Hierarchy

  • Logger

Index

Constructors

Methods

Constructors

constructor

  • new Logger(tag: string): Logger
  • Parameters

    • tag: string

    Returns Logger

Methods

error

  • error(message: string, ...args: any[]): void
  • Parameters

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

    Returns void

info

  • info(message: string, ...args: any[]): void
  • Parameters

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

    Returns void

trace

  • trace(message: any, ...args: any[]): void
  • Parameters

    • message: any
    • Rest ...args: any[]

    Returns void

warn

  • warn(message: string, ...args: any[]): void
  • Parameters

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

    Returns void

Generated using TypeDoc