Options
All
  • Public
  • Public/Protected
  • All
Menu

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

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 setConfigurationCategory

  • Set new configuration settings for a category (and possibly its child categories)

    Parameters

    • config: CategoryDefaultConfiguration

      Config

    • category: Category

      Category

    • Default value applyChildren: boolean = false

      True to apply to child categories, defaults to false.

    • Default value resetRootLogger: boolean = false

      Defaults to false. If set to true and if category is a root category it will reset the root logger.

    Returns void

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