Debug¶
class in Infernux.debug
Description¶
Utility class for logging messages to the console.
description
Static Methods¶
| Method | Description |
|---|---|
static Debug.log(message: Any, context: Any = ...) → None |
Log a message to the console. |
static Debug.log_warning(message: Any, context: Any = ...) → None |
Log a warning message to the console. |
static Debug.log_error(message: Any, context: Any = ..., source_file: str = ..., source_line: int = ...) → None |
Log an error message to the console. |
static Debug.log_exception(exception: Exception, context: Any = ...) → None |
Log an exception to the console. |
static Debug.log_assert(condition: bool, message: Any = ..., context: Any = ...) → None |
Assert a condition and log if it fails. |
static Debug.clear_console() → None |
Clear all messages in the debug console. |
static Debug.log_internal(message: Any, context: Any = ...) → None |
Log an internal engine message (hidden from user by default). |
static_methods
Example¶
example
See Also¶
see_also