Static
isWhether to store log messages in memory for later retrieval.
Static
isWhether to format log messages with timestamps and log level prefixes.
Static
logThe minimum log level that will be output. Messages below this level are ignored.
Static
assertPerforms 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
Static
debugLogs 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
Static
errorLogs 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
Static
getStatic
infoLogs 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
Static
warnLogs 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