console
Adds messages to the log.
The console can be used to log information when running your script. The log may be useful when debugging your script, e.g. to examine values of variables.
Methods
Section titled “Methods”
error(message)
Section titled “error(message)”Logs an error message to the console.
static error(message: any)The message will have a distinctive appearance. Refer to console.log(message) to log informative message and console.warn(message) to log warnings.
You can also use the global function logError(message) which is a shorthand for console.error.
Parameters
Section titled “Parameters”message any
Message to log to the console.
log(message)
Section titled “log(message)”Logs a message to the console.
static log(message: any)The message will have a default appearance. Refer to console.error(message) to log errors.
You can also use the global function log(message) which is a shorthand for console.log.
Parameters
Section titled “Parameters”message any
Message to log to the console.
logError(message)
Section titled “logError(message)”Logs an error message to the console.
static logError(message: any)The message will have a distinctive appearance. Refer to console.log(message) to log informative message and console.warn(message) to log warnings.
You can also use the global function logError(message) which is a shorthand for console.error.
Parameters
Section titled “Parameters”message any
Message to log to the console.
warn(message)
Section titled “warn(message)”Logs a warning message to the console.
static warn(message: any)The message will have a distinctive appearance. Refer to console.log(message) to log informative messages and console.error(message) to log errors.
You can also use the global function logWarning(message) which is a shorthand for console.warn.
Parameters
Section titled “Parameters”message any
Message to log to the console.