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

Method log

src/core/classes/IterableLogger.ts:79–83  ·  view source on GitHub ↗

* Logs a message to the console if logging is enabled. * * @param message - The message to be logged. * * @example * ```typescript * IterableLogger.log('I will show if logging is enabled'); * ```

(message?: unknown, ...optionalParams: unknown[])

Source from the content-addressed store, hash-verified

77 * ```
78 */
79 static log(message?: unknown, ...optionalParams: unknown[]) {
80 if (!IterableLogger.loggingEnabled) return;
81
82 console.log(message, ...optionalParams);
83 }
84
85 /**
86 * Logs a message to the console if the log level is {@link IterableLogLevel.error}.

Callers 15

handleClickFunction · 0.80
EmbeddedFunction · 0.80
IterableAppProviderFunction · 0.80
callUrlHandlerFunction · 0.80
errorMethod · 0.80
debugMethod · 0.80
infoMethod · 0.80
trackPurchaseMethod · 0.80
trackInAppOpenMethod · 0.80
setupEventHandlersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected