MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / error

Method error

src/core/classes/IterableLogger.ts:95–100  ·  view source on GitHub ↗

* 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[])

Source from the content-addressed store, hash-verified

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

Callers 4

IterableAppProviderFunction · 0.80
createPackageInfoFileFunction · 0.80

Calls 1

logMethod · 0.80

Tested by

no test coverage detected