On this page
- Reference
- Echo
- Enums
- Functions
EchoDebug(_message, _urgency = eEchoDebugUrgency.WARNING, _tag = "")EchoDebugInfo(_message, _tag = "")EchoDebugWarn(_message, _tag = "")EchoDebugSevere(_message, _tag = "")EchoDebugSetLevel(_level)EchoDebugGetLevel(_stringify = false)EchoDebugDumpLog()EchoDebugGetHistorySize()EchoDebugSetHistorySize(_max)EchoDebugSetRawHistoryCapture(_enabled)EchoDebugClearHistory()EchoDebugGetHistory()EchoDebugGetRevision()EchoDebugGetStructuredHistory()EchoDebugSetTags(_tags)EchoDebugClearTags()EchoDebugGetTags()
- Echo
Reference
This page covers the public API for Echo. Echo Chamber has its own scripting reference under docs/echo_chamber/scripting.md.
Private rule: anything starting with __ and/or marked with /// @ignore is considered internal and is intentionally not documented here.
Echo
Echo is the logger: it decides what to print, what to store, and how to filter it.
Enums
eEchoDebugLevel
NONESEVERE_ONLYCOMPREHENSIVECOMPLETE
eEchoDebugUrgency
INFOWARNINGSEVERE
Functions
EchoDebug(_message, _urgency = eEchoDebugUrgency.WARNING, _tag = "")
Send a message to the debug logger with a specific urgency level. Returns true if the message meets current debug level critera, false if not. Parameters
_messageString: The message to send to the debug logger[_urgency]Real: The level of urgency of the debug message (pick an entry from the eEchoDebugUrgency enum)[_tag]String,Array<String>: Optional tag or tags to filter on (e.g., “UI”, [“Physics”,”Jump”]). Empty or empty array allows all. Returns:Boolean
EchoDebugInfo(_message, _tag = "")
Logs a debug message with an INFO urgency level Parameters
_messageString[_tag]String,Array<String>
EchoDebugWarn(_message, _tag = "")
Logs a debug message with a WARNING urgency level Parameters
_messageString[_tag]String,Array<String>
EchoDebugSevere(_message, _tag = "")
Logs a debug message with a SEVERE urgency level (includes stack trace) Parameters
_messageString[_tag]String,Array<String>
EchoDebugSetLevel(_level)
Sets the debug logging level, which determines what urgency criteria messages must meet in order to be logged. Parameters
_levelReal: The level of logging (pick an entry from the eEchoDebugLevel enum) Returns:Boolean
EchoDebugGetLevel(_stringify = false)
Returns the current debug logging level (will be equivalent to one of the entries from the eEchoDebugLevel enum). Parameters
_stringifyBoolean: Whether to return the debug level as a string, or as the plain real value. Returns:Real,String,Bool- False if debug is disabled.
EchoDebugDumpLog()
Dumps the entire debug log history to a file (file naming convention is “echo_debug_dump-[current_date]-([time_since_game_started]).txt). Returns true if dump succeeded, false if not Returns: Boolean
EchoDebugGetHistorySize()
Returns the current maximum number of entries allowed in the debug log history Returns: Real,Bool - False if debug is disabled.
EchoDebugSetHistorySize(_max)
Sets the maximum number of entries allowed in the debug log history. Setting it to 0 means there is no limit. Parameters
_maxRealReturns:Boolean
EchoDebugSetRawHistoryCapture(_enabled)
Enables or disables raw history capture for the Echo Console (default is enabled). When disabled, no raw history is captured and the console only displays future messages that pass the current debug level. Parameters
_enabledBooleanReturns:Boolean
EchoDebugClearHistory()
Clears all entries from the debug log history Returns: Boolean - False if debug is disabled, otherwise true after clearing.
EchoDebugGetHistory()
Returns a new array filled with the entries from debug log history Returns: Array<String>,Boolean - False if debug is disabled.
EchoDebugGetRevision()
Returns the current log revision number. This increments whenever history changes. Returns: Real,Boolean - False if debug is disabled.
EchoDebugGetStructuredHistory()
Returns a new array of structured history entries for UI rendering. Returns: Array<Struct>,Boolean - False if debug is disabled.
EchoDebugSetTags(_tags)
Sets which tags are allowed to log. An empty array means “allow all”. Parameters
_tagsArray<String>Returns:Boolean
EchoDebugClearTags()
Clears any tag filter so all tags are allowed. Returns: Boolean
EchoDebugGetTags()
Gets the current allowed tags array (empty means “allow all”). Returns: Array<String>,Boolean