Class: Logger

Logger

Provides basis logging and deprecation utilities


new Logger()

Source:

Classes

Logger

Members


enableDebugLog

Enable debug level logging. Set to false by default.

Source:

Methods


debug( [msg])

Put a debug message to console. It is controlled by logger.enableDebugLog

Parameters:
Name Type Argument Description
msg String <optional>
Source:
Returns:
Type
Logger
Example
logger.debug('Total number of slices: ' + numSlices);

warn( [msg])

Put a warning message to console

Parameters:
Name Type Argument Description
msg String <optional>
Source:
Returns:
Type
Logger
Example
logger.warn('Invalid use of .tension on CurveLinear');

warnOnce( [msg])

Put a warning message to console. It will warn only on unique messages.

Parameters:
Name Type Argument Description
msg String <optional>
Source:
Returns:
Type
Logger
Example
logger.warnOnce('Invalid use of .tension on CurveLinear');