Class Logger

Provides basis logging and deprecation utilities

Hierarchy

  • Logger

Constructors

Properties

Methods

Constructors

  • Returns Logger

Properties

enableDebugLog: boolean

Enable debug level logging. Set to false by default.

Methods

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

    Example

    logger.debug('Total number of slices: ' + numSlices);
    

    Parameters

    • msg: string

    Returns Logger

  • Put a warning message to console

    Example

    logger.warn('Invalid use of .tension on CurveLinear');
    

    Parameters

    • msg: string

    Returns Logger

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

    Example

    logger.warnOnce('Invalid use of .tension on CurveLinear');
    

    Parameters

    • msg: string

    Returns Logger

Generated using TypeDoc