Lens Scripting API
    Preparing search index...

    Class console

    Contains various utilities that can print out various messages in the Logger panel.

    console.log("Start Tracking Time");

    console.time("MyTimer"); // Start a timer

    for (var i = 0; i<1000; i++) {
    console.timeLog("MyTimer", "Current Index is: %d", i); // Mark time since `console.time` was called
    }

    console.timeEnd("MyTimer"); // End the timer
    Index

    Methods

    • Prints out a message to the Logger window at the debug log level.

      Parameters

      • ...data: any[]

      Returns void

    • Prints out a message to the Logger window at the error log level.

      Parameters

      • ...data: any[]

      Returns void

    • Prints out a message to the Logger window at the info log level.

      Parameters

      • ...data: any[]

      Returns void

    • Prints out a message to the Logger window.

      Parameters

      • ...data: any[]

      Returns void

    • Starts a timer named label or "default" if no label specified.

      Parameters

      • ...label: any[]

      Returns void

    • Ends timer with name label or "default" if no label specified.

      Parameters

      • ...label: any[]

      Returns void

    • Logs current time for timer named label or "default" if no label specified.

      Parameters

      • ...label: any[]

      Returns void

    • Prints out a stack trace to the Logger window.

      Parameters

      • ...data: any[]

      Returns void

    • Prints out a message to the Logger window at the warning log level.

      Parameters

      • ...data: any[]

      Returns void