Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface for objects where objects in this package's logs can be sent (can be used as logger option).

Hierarchy

  • Logger

Implemented by

Index

Methods

debug

  • debug(...msg: any[]): void
  • Output debug message

    Parameters

    • Rest ...msg: any[]

      any data to log

    Returns void

error

  • error(...msg: any[]): void
  • Output error message

    Parameters

    • Rest ...msg: any[]

      any data to log

    Returns void

info

  • info(...msg: any[]): void
  • Output info message

    Parameters

    • Rest ...msg: any[]

      any data to log

    Returns void

setLevel

  • This disables all logging below the given level, so that after a log.setLevel("warn") call log.warn("something") or log.error("something") will output messages, but log.info("something") will not.

    Parameters

    • level: LogLevel

      as a string, like 'error' (case-insensitive)

    Returns void

setName

  • setName(name: string): void
  • This allows the instance to be named so that they can easily be filtered when many loggers are sending output to the same destination.

    Parameters

    • name: string

      as a string, will be output with every log after the level

    Returns void

warn

  • warn(...msg: any[]): void
  • Output warn message

    Parameters

    • Rest ...msg: any[]

      any data to log

    Returns void

Generated using TypeDoc