Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

A static singleton class used to expose the logging mechanism.

Logging is provided through the use of a logging chain. When log is called, the logger iterates over each logger in the chain calling log on each individual logger.

Hierarchy

  • Logger

Index

Properties

Methods

Properties

Static loggers

loggers: LogProvider[] = []

Methods

Static addLogger

Static log

  • log(sender: string, message: string, level?: LogLevel): void
  • Logs a message using each logger in the chain.

    Parameters

    • sender: string

      The sender of the message.

    • message: string

      The message.

    • Default value level: LogLevel = LogLevel.Message

      The level of the message.

    Returns void

Static resetLoggers

  • resetLoggers(): void

Generated using TypeDoc