StaticloggingWhether logs should show in the developer console.
StaticlogThe level of logging.
This controls which logs will show when using the IterableLogger.error, IterableLogger.debug, and IterableLogger.info methods.
StaticdebugLogs a message to the console if the log level is IterableLogLevel.debug or IterableLogLevel.error.
Optionalmessage: unknownThe message to be logged.
StaticerrorLogs a message to the console if the log level is IterableLogLevel.error.
Optionalmessage: unknownThe message to be logged.
StaticinfoLogs a message to the console if the log level is IterableLogLevel.info, IterableLogLevel.debug or IterableLogLevel.error.
Optionalmessage: unknownThe message to be logged.
StaticlogStaticsetSets whether logs should show in the developer console.
OptionalloggingEnabled: booleanWhether logs should show in the developer console.
StaticsetSets the level of logging to show in the developer console.
OptionallogLevel: IterableLogLevelThe level of logging to show in the developer console.
A logger class for the Iterable SDK.
This class is responsible for logging messages based on the configuration provided, is useful in unit testing or debug environments.
Remarks
The logging behavior is controlled by the
logReactNativeSdkCallsproperty in IterableConfig.If this property is not set, logging defaults to
true, which is useful in unit testing or debug environments.Example