Check the Log Output

The SDK uses extensive internal logging to record actions it performs for informational and diagnostic purposes. General logging is always enabled. The SDK also writes error and fault-level logs when certain conditions occur. Add this code to your app to enable logging.

You can also enable logging with CustomLogOutputter, as shown in this example.

Alternatively, you can enable logging with a standard log output and a log filter, as shown in this example.

To clear previously set filtering options, use this code.

To query the state of debug-level logging, use this code.

The SDK sends all logging output to Apple’s unified logging system. Review this information on the Devices and Simulators window in Xcode, or in the macOS Console app. If SDK debug logging is enabled, the SDK uses the OS_LOG_TYPE_DEBUG value.

Disable logging before you submit a release build to the App Store.