Skip to content

console

The console object provides various logging, debugging, and output methods.

spam(msg) function

Output a spam-level message for very verbose logging.

debug(msg) function

Output a debug-level message.

info(msg) function

Output info level message.

warn(msg) function

Output warn level message.

log(msg) function

Output directly to in game console.

error(e) function

Output error level message, and print stacktrace.

panic(e) function

Output a panic-level message and exit the program.

assert(op, str = assertion failed [value '${op}']) function

If the condition is false, print an error and panic.