Files
prosperon/docs/api/console.md
John Alanbrook 83b798e365 Add Hugo website and rewrite docs to match current engine
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>
2026-02-23 18:09:55 -06:00

814 B

title, type
title type
console docs

console

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

print() function

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.