Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CategoryDefaultConfiguration

Default configuration, can be used to initially set a different default configuration on the CategoryServiceFactory. This will be applied to all categories already registered (or registered in the future).

Hierarchy

  • CategoryDefaultConfiguration

Index

Constructors

constructor

  • Create a new instance

    Parameters

    • Default value logLevel: LogLevel = LogLevel.Error

      Log level for all loggers, default is LogLevel.Error

    • Default value loggerType: LoggerType = LoggerType.Console

      Where to log, default is LoggerType.Console

    • Default value logFormat: CategoryLogFormat = new CategoryLogFormat()

      What logging format to use, use default instance, for default values see CategoryLogFormat.

    • Default value callBackLogger: function | null = null

      Optional callback, if LoggerType.Custom is used as loggerType. In that case must return a new Logger instance. It is recommended to extend AbstractCategoryLogger to make your custom logger.

    Returns CategoryDefaultConfiguration

Accessors

callBackLogger

  • get callBackLogger(): function | null

logFormat

logLevel

loggerType

Generated using TypeDoc