Enable Debug Logging for the Android SDK

SDK logs are disabled by default. To enable logging, you add a sink and then specify a log level.

Call addSink to direct the debug logs to the specified sink. LOG_CAT_SINK directs all log messages to the Android logcat using the standard Log.<level> calls. Set the log level with setLogLevel. For example:

To direct the logs somewhere other than logcat, implement your own ServiceLoggingSink.

To learn more about Android logging, see Write and View Logs.