Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoggerStore

Helper to statically store loggers globally.

Hierarchy

  • LoggerStore

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Static store

store: Map<string, ILogger> = ...

Methods

Static add

  • add(key: string, logger: ILogger): void
  • Add a logger to the given key or overrides it.

    Parameters

    Returns void

Static get

  • get(key: string): undefined | ILogger
  • Returns a logger if it exists for the give key.

    Parameters

    • key: string

    Returns undefined | ILogger

Static remove

  • remove(key: string): boolean
  • Removes a logger for a given key.

    Parameters

    • key: string

    Returns boolean

    True if a logger was removed. False otherwise.

Generated using TypeDoc