IManager
pentaho.debug.IManager
The debug.IManager
interface represents a manager of the debugging level for several code contexts.
Source: doc-js/pentaho/debug/IManager.jsdoc, line 17
See also: pentaho.debug.manager
Methods
Name | Description |
---|---|
configure(spec) | Configures the debugging manager given a specification. |
getLevel(module) : pentaho.debug.Levels | Gets the maximum active debugging level, optionally for a given AMD module. |
setLevel(level, module) | Sets the maximum active debugging level, optionally for a given AMD module. |
testLevel(level, module) : boolean | Tests if a debugging level is active, optionally for a given AMD module. |
Methods Details
configure(spec) | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Configures the debugging manager given a specification. Source: doc-js/pentaho/debug/IManager.jsdoc, line 38
|
getLevel(module) : pentaho.debug.Levels | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets the maximum active debugging level, optionally for a given AMD module. Source: doc-js/pentaho/debug/IManager.jsdoc, line 52
Example define([ "module", "pentaho/debug", "pentaho/debug/Levels" ], function(module, debugMgr, DebugLevels) { var isDebugEnabled = debugMgr.getLevel(module) >= DebugLevels.debug; // ... }); |
setLevel(level, module) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Sets the maximum active debugging level, optionally for a given AMD module. Source: doc-js/pentaho/debug/IManager.jsdoc, line 26
|
testLevel(level, module) : boolean | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Tests if a debugging level is active, optionally for a given AMD module. Source: doc-js/pentaho/debug/IManager.jsdoc, line 78
Example define([ "module", pentaho/debug ], function(module, debugMgr) { var isDebugEnabled = debugMgr.testLevel("debug", module); // ... }); |