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.logError(message) to log errors.

You can also just the global function log which is a shorthand for console.log.

static log(message: any)

+logError

Logs an error message to the console.

The message will have a distinctive appearance. Refer to console.log(message) to log informative message.

You can also just the global function logError which is a shorthand for console.logError.

static logError(message: any)