StaticisWhether to store log messages in memory for later retrieval.
StaticisWhether to format log messages with timestamps and log level prefixes.
StaticlogThe minimum log level that will be output. Messages below this level are ignored.
StaticassertPerforms 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
StaticdebugLogs 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
StaticerrorLogs 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
StaticgetStaticinfoLogs 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
StaticwarnLogs 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