Class: DisabledLogging

mmir. DisabledLogging

mmir.DisabledLogging

A "silent" replacement for the Logger factory.
Has the same interface (functions etc.) as mmir.Logging.

This logging module allows to disable logging completely.

Which logging module is used, can be configured in core module in mmir.

Note: after configuration of mmir.debug with false, this logging module, i.e. the DisabledLogging factory with its DisabledLogger implementation, will be available via mmir.Logging(and not as mmir.DisabledLogger).
See:
Example
var DisabledLogger = mmir.require('mmirf/loggerDisabled');
var logger = DisabledLogger.create('SomeClass');

//same as above, if mmir.debug was set to false, before initialization:
var Logger = mmir.require('mmirf/logger');
var logger = Logging.create('SomeClass');

Members

isDisabledLogger

Special property for identifying the disabled logger-factory

Methods

Will always return the default logger for this logging module
Returns:
Type Description
mmir.tools.DisabledLogger

getDefaultLogLevel()

setDefaultLogLevel()