Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LoggerModuleConfig

Module configuration for the LoggerModule

example

var loggerModuleConfig = { level: 'info', levels: { warn: ['mmirf/mediaManager', 'mmirf/inputEngine'] }, modules: { 'mmirf/dialogEngine': 'critical' } }; // set to global mmir before initialing mmir: mmir.logLevel = loggerModuleConfig;

// or use as mmir application configuration with mmir-tooling configuration: var mmirAppConfig = { config: { 'mmirf/logger': { logLevel: loggerModuleConfig } } }; //... require('mmir-webpack')(webpack, webpackConfig, mmirAppConfig);

Hierarchy

  • LoggerModuleConfig

Index

Properties

Properties

Optional level

OPTIONAL the default log level as integer or string, DEFAULT: "debug"

Optional levels

levels: {}

OPTIONAL list of modules for per log level (unspecified modules will have default log level)

Type declaration

  • [logLevel: string]: string[]

    list of modules for the LogLevel NOTE: the field name must be a valid LogLevel (e.g. "warn"), otherwise it will be ignored

Optional modules

modules: {}

OPTIONAL log level per module (unspecified modules will have default log level)

Type declaration

  • [moduleId: string]: LogLevel | LogLevelNum

    log level for the module NOTE: the field name needs to correspond to the module ID

Generated using TypeDoc