Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CategoryServiceFactory

Categorized service for logging, where logging is bound to categories which can log horizontally through specific application logic (services, group(s) of components etc). For the standard way of logging like most frameworks do these days, use LFService instead. If you want fine grained control to divide sections of your application in logical units to enable/disable logging for, this is the service you want to use instead. Also for this type a browser plugin will be available.

Hierarchy

  • CategoryServiceFactory

Index

Methods

Static clear

  • clear(): void
  • Clears everything, any registered (root)categories and loggers are discarded. Resets to default configuration.

    Returns void

Static getLogger

  • Return a CategoryLogger for given ROOT category (thus has no parent). You can only retrieve loggers for their root, when logging you specify to log for what (child)categories.

    Parameters

    • root: Category

      Category root (has no parent)

    Returns CategoryLogger

Static getRuntimeSettings

Static setDefaultConfiguration

  • Set the default configuration. New root loggers created get this applied. If you want to reset all current loggers to have this applied as well, pass in reset=true (the default is false). All categories runtimesettings will be reset then as well.

    Parameters

    • config: CategoryDefaultConfiguration

      The new default configuration

    • Default value reset: boolean = false

      If true, will reset all runtimesettings for all loggers/categories to these.

    Returns void

Generated using TypeDoc