@iterable/react-native-sdk - v2.0.3
    Preparing search index...

    Class IterableLogger

    A logger class for the Iterable SDK.

    This class is responsible for logging messages based on the configuration provided.

    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.

    const config = new IterableConfig();
    config.logReactNativeSdkCalls = true;
    const logger = new IterableLogger(config);
    logger.log('This is a log message.');
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    The configuration settings for the Iterable SDK. This property is read-only and is initialized with an instance of IterableConfig.

    Methods

    • Logs a message to the console if logging is enabled.

      Parameters

      • message: string

        The message to be logged.

      Returns void