Whether to store log messages in memory for later retrieval.
Whether to format log messages with timestamps and log level prefixes.
The minimum log level that will be output. Messages below this level are ignored.
Static ReadonlydefaultThe default global Logger instance for code that doesn't have access to an Engine.
Performs a console assertion and logs a message if the condition is false. Assert messages are used for debugging and testing critical assumptions.
The condition to test; if false, the assertion fails
The message to log when the assertion fails
The formatted message if logged, undefined if filtered out
Clears all accumulated log messages from memory.
Logs a debug message to the console if the current log level permits it. Debug messages provide detailed information useful for troubleshooting and development.
The debug message to log
The formatted message if logged, undefined if filtered out
Logs an error message to the console if the current log level permits it. Error messages indicate serious problems that should be addressed immediately.
The error message to log
The formatted message if logged, undefined if filtered out
Retrieves all accumulated log messages as formatted strings.
Only available when isAccumulateLog is enabled.
An array of formatted log message strings
Logs an informational message to the console if the current log level permits it. Info messages provide general information about application flow and state.
The informational message to log
The formatted message if logged, undefined if filtered out
Logs a warning message to the console if the current log level permits it. Warning messages indicate potential issues that should be monitored.
The warning message to log
The formatted message if logged, undefined if filtered out
A comprehensive logging utility class that provides various log levels, message formatting, and log accumulation capabilities.
Features:
Example