Options
All
  • Public
  • Public/Protected
  • All
Menu

Create and configure your LoggerFactory from here.

Hierarchy

  • LFService

Index

Accessors

Static DEFAULT

  • This property returns the default LoggerFactory (if not yet initialized it is initialized). This LoggerFactory can be used to share among multiple applications/libraries - that way you can enable/change logging over everything from your own application when required. It is recommended to be used by library developers to make logging easily available for the consumers of their libraries. It is highly recommended to use Loggers from the LoggerFactory with unique grouping/names to prevent clashes of Loggers between multiple projects.

    Returns LoggerFactory

    Returns the default LoggerFactory

Methods

Static closeLoggers

  • closeLoggers(): void
  • Closes all Loggers for LoggerFactories that were created. After this call, all previously fetched Loggers (from their factories) are unusable. The factories remain as they were.

    Returns void

Static createLoggerFactory

  • Create a new LoggerFactory with given options (if any). If no options are specified, the LoggerFactory, will accept any named logger and will log on info level by default for, to the console.

    Parameters

    Returns LoggerFactory

Static createNamedLoggerFactory

  • Create a new LoggerFactory using given name (used for console api/extension).

    Parameters

    • name: string

      Name Pick something short but distinguishable. The word "DEFAULT" is reserved and cannot be taken, it is used for the default LoggerFactory.

    • Default value options: LoggerFactoryOptions | null = null

      Options, optional

    Returns LoggerFactory

Static getRuntimeSettings

Generated using TypeDoc