# console

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

### print() <sub>function</sub>

### spam(msg) <sub>function</sub>

Output a spam-level message for very verbose logging.

### debug(msg) <sub>function</sub>

Output a debug-level message.

### info(msg) <sub>function</sub>

Output info level message.

### warn(msg) <sub>function</sub>

Output warn level message.

### log(msg) <sub>function</sub>

Output directly to in game console.

### error(e) <sub>function</sub>

Output error level message, and print stacktrace.

### panic(e) <sub>function</sub>

Output a panic-level message and exit the program.

### assert(op, str = `assertion failed [value '${op}']`) <sub>function</sub>

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