Interface LoggerExperimental

subject to change or removal. The logging system may be modified in the future without prior notice.

0.11.0

interface Logger {
    debug(message: string): void;
    enter(message: string): undefined | number;
    error(message: string, ...optionalParams: any[]): void;
    info(message: string): void;
    leave(message: string, baseTimestamp?: number): void;
    show(): void;
    trace(message: string): void;
    warn(message: string): void;
}

Implemented by

Methods

  • Experimental

    Parameters

    • message: string

    Returns void

  • Experimental

    Log the specified string at TRACE level and returns the current time in milliseconds.

    Parameters

    • message: string

    Returns undefined | number

    may return undefined hen the TRACE level is not enabled.

  • Experimental

    Parameters

    • message: string
    • Rest...optionalParams: any[]

    Returns void

  • Experimental

    Parameters

    • message: string

    Returns void

  • Experimental

    Log the specified string at TRACE level and also log the difference between the current time and t0 in milliseconds.

    Parameters

    • message: string
    • OptionalbaseTimestamp: number

    Returns void

    enter for an example.

  • Experimental

    Shows the console in the UI. This may produce no effect in some implementation which doesn't rely on the UI to log.

    Returns void

  • Experimental

    Parameters

    • message: string

    Returns void

  • Experimental

    Parameters

    • message: string

    Returns void