* Logs a message to the console if the log level is IterableLogLevel.error. * * @param message - The message to be logged. * * @example * ```typescript * IterableLogger.error('I will only show if the log level is error and logging is enabled'); * ```
(message?: unknown, ...optionalParams: unknown[])
| 93 | * ``` |
| 94 | */ |
| 95 | static error(message?: unknown, ...optionalParams: unknown[]) { |
| 96 | if (!IterableLogger.loggingEnabled) return; |
| 97 | if (IterableLogger.logLevel !== IterableLogLevel.error) return; |
| 98 | |
| 99 | console.log(`ERROR:`, message, ...optionalParams); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Logs a message to the console if the log level is |
no test coverage detected