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

Static getRuntimeSettings

Static setConfigurationCategory

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

    Parameters

    • config: CategoryConfiguration

      Config

    • category: Category

      Category

    • Default value applyChildren: boolean = false

      True to apply to child categories, defaults to false.

    • Default value resetRootLogger: boolean = true

      Defaults to true. 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: CategoryConfiguration

      The new default configuration

    • Default value reset: boolean = true

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

    Returns void

Generated using TypeDoc