Common utilities module.
Classes
Methods
-
<static> error(msg [, err])
-
Log application error.
Parameters:
Name Type Argument Description msg
string Error message. err
external:Error <optional>
Optional error object. -
<static> getDebugLogger(section)
-
Get debug logger.
Parameters:
Name Type Description section
string Section being debugged. Returns:
Debug logger function that takes one argument, which is the debug message. The function also has a read-only Boolean propertyenabled
, which tells if the logger is enabled or if it is a noop.- Type
- function