Logger
Static logging methods. Use for debugging and diagnostics. Output appears in the terminal or host log.
Logger
Section titled “Logger”Logger.info(message)
Section titled “Logger.info(message)”Parameters:
message(String) — Message to log at info level.
Log an informational message.
Logger.info("Game started")Logger.info("Score: %(score)")Logger.warn(message)
Section titled “Logger.warn(message)”Parameters:
message(String) — Warning message.
Log a warning (e.g. recoverable or unexpected conditions).
if (asset == null) Logger.warn("Could not load asset: %(path)")Logger.error(message)
Section titled “Logger.error(message)”Parameters:
message(String) — Error message.
Log an error.
Logger.error("Failed to initialize renderer")Logger.dump(value)
Section titled “Logger.dump(value)”Parameters:
value(any) — Value to inspect (string, number, List, Map, object, etc.).
Dump a value for debugging (e.g. inspect tables or object state). The format is implementation-dependent.
Logger.info("Game started")Logger.dump(someTable)Logger.dump(_mesh.getVertexCount())