Release Notes
Android Examples
Enable Debug Logging for the Android SDK
Can't Connect to Chat
Error Using the Salesforce Mobile SDK with the
Data Protection and Security
Additional Resources
PDF Version
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:
1ServiceLogging.addSink(ServiceLogging.LOG_CAT_SINK);
2ServiceLogging.setLogLevel(ServiceLogging.LEVEL_TRACE);To direct the logs somewhere other than logcat, implement your own ServiceLoggingSink.
To learn more about Android logging, see Write and View Logs.