This class is responsible for logging messages based on the configuration provided.
Remarks
The logging behavior is controlled by the logReactNativeSdkCalls property
in IterableConfig.
If this property is not set, logging defaults to true, which is useful in unit testing or debug environments.
Example
constconfig = newIterableConfig(); config.logReactNativeSdkCalls = true; constlogger = newIterableLogger(config); logger.log('This is a log message.');
A logger class for the Iterable SDK.
This class is responsible for logging messages based on the configuration provided.
Remarks
The logging behavior is controlled by the
logReactNativeSdkCalls
property in IterableConfig. If this property is not set, logging defaults totrue
, which is useful in unit testing or debug environments.Example