Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TsLogFactory

A wrapper around "tslog" logging library that allows to change logging settings at runtime (for each registered module independently, or globally - for all loggers).

Hierarchy

  • TsLogFactory

Index

Constructors

constructor

Properties

Private defaultOptions

defaultOptions: ISettingsParam = ...

Private Readonly registeredLoggers

registeredLoggers: {} = {}

Type declaration

  • [moduleName: string]: Logger

Private Readonly registeredOptions

registeredOptions: {} = {}

Type declaration

  • [moduleName: string]: ISettingsParam

Methods

create

getOptions

  • getOptions(moduleName?: string): ISettingsParam

logLevel

  • logLevel(level: LogLevel, moduleName?: string): void

setOptions

  • setOptions(newOptions: ISettingsParam, moduleName?: string): void

Generated using TypeDoc