Search code examples
iosanalyticsamplitude-analytics

Amplitude analytics for iOS: setting up logging level


Is there a way to set up logging level for Amplitude iOS SDK similar to Android's Amplitude.getInstance().enableLogging() and Amplitude.getInstance().setLogLevel(), as I'd like to see how my analytics implementation works in console output in debug mode.


Solution

  • Here is the official answer from support:

    Yes, it is possible to set up a log level for Amplitude. At the top of each file in the SDK, you can change the AMPLITUDE_DEBUG flag, and you can also change the AMPLITUDE_LOG_ERRORS flag to turn off error logging.