Logging
Write bounded messages to the live game console.
Feature status and language/platform compatibility
Choose an API to see its signature, parameters, examples and behavior.
APIs
Module guide
When to call it
Log lifecycle transitions and recoverable errors. Avoid per-frame logging outside short debugging sessions because bounded queues can drop excessive output.
Variables
| Variable | Type | Required | Description |
|---|---|---|---|
level | string | Yes | debug, info, warn, or error. |
message | string | Yes | Human-readable diagnostic text. |
Return and timing
No value. The message is queued for the bounded console sink.
Constraints and behavior
- In Lua and JavaScript, print(...) writes an info entry and warn(...) writes a warning entry to the Rustic Console. Lua separates multiple arguments with tabs; JavaScript separates them with spaces. Use rustic.log for an explicit level. External programs must not print diagnostics to stdout; stdout is reserved for protocol responses.
- Every gameplay language calls the engine-owned API. Rustic supplies SDKs and dispatches callbacks; scripts do not parse requests or serialize responses. See the language guide for complete setup and callback registration.