Options
All
  • Public
  • Public/Protected
  • All
Menu

The service (only available as singleton) for all category related stuff as retrieving, registering a logger. You should normally NOT use this, instead use CategoryServiceFactory which is meant for end users.

Hierarchy

  • CategoryServiceImpl

Implements

Index

Methods

clear

  • clear(): void
  • Clears everything, including a default configuration you may have set. After this you need to re-register your categories etc.

    Returns void

enableExtensionIntegration

  • enableExtensionIntegration(): void
  • Used to enable integration with chrome extension. Do not use manually, the extension and the logger framework deal with this.

    Returns void

getCategoryById

  • getCategoryById(id: number): Category | null

getCategorySettings

getLogger

getOriginalCategorySettings

getRootCategories

registerCategory

  • registerCategory(category: Category): void

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

      Deprecated since 0.5.0 and not used anymore, no replacement will be removed in next version!

    Returns void

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 will be reset then as well.

    Parameters

    • config: CategoryConfiguration

      New config

    • Default value reset: boolean = true

      Defaults to true. Set to true to reset all loggers and current runtimesettings.

    Returns void

Static getInstance

Generated using TypeDoc