Skip to content

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.

+log

Logs a message to the console.

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.

static log(message: any)

+warn

Logs a warning message to the console.

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.

static warn(message: any)

+error

Logs an error message to the console.

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.

static error(message: any)

+logError

Logs an error message to the console.

Deprecated in version 1.3. Use console.error(message) instead.

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.

static logError(message: any)