interface ConsoleAPI {
    Log(message: string): void;
    Warn(message: string): void;
    Error(message: string): void;
}

Methods

Methods

  • Logs an informational message to the script output panel.

    Parameters

    • message: string

      The message to log.

    Returns void

    Console.Log("step 1 complete");
    Console.Log("value: " + myVar);
  • Logs a warning message to the script output panel.

    Parameters

    • message: string

      The warning text.

    Returns void

    Console.Warn("retrying: " + attempt);
    
  • Logs an error message to the script output panel.

    Parameters

    • message: string

      The error text.

    Returns void

    Console.Error("window not found");