Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LoggerFactory

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

isEnabled

  • isEnabled(): boolean
  • Return true if enabled, false otherwise. If disabled, logging is not written in any form.

    Returns boolean

Generated using TypeDoc