New Hugo site in website/ with prosperon.dev theme (blue/gold/castle aesthetic), docs sidebar navigation, and content pages. Rewrote all doc files to align with the actual codebase: compositor+film2d rendering, use() modules (no global prosperon object), Pit language, script+JSON entity model. Added entities.md, front matter to all 70+ API docs, and updated API index for current module architecture. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
814 B
Markdown
43 lines
814 B
Markdown
---
|
|
title: "console"
|
|
type: docs
|
|
---
|
|
|
|
# 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.
|