Options
All
  • Public
  • Public/Protected
  • All
Menu

LoggerFactory, which allows you to get a Logger. It also allows you to reconfigure it, by configure() if needed.

Hierarchy

  • LoggerFactory

Implemented by

Index

Methods

configure

  • Can be used to reconfigure this logger. This call closes all current open loggers (they will become unusable). After this call the factory is reconfigured and calls to getLogger can be made again.

    Parameters

    Returns void

getLogger

  • getLogger(named: string): Logger
  • Retrieve a logger for given name. E.g. model.Person, the logging level the logger has depends on the configuration this LoggerFactory was created with by {@link LFService#create}

    Parameters

    • named: string

      Name to fetch the logger with, calling with the same name repeatedly will return the same logger.

    Returns Logger

getName

  • getName(): string
  • Returns the name of this LoggerFactory, this is used for the console api. If no name was specified the LoggerFactory has an auto-generated name.

    Returns string

isEnabled

  • isEnabled(): boolean

Generated using TypeDoc