In this article, you will learn how to receive errors reported by Nimbus, enable or disable test mode, how to set up ProGuard/R8 for code obfuscation, and troubleshoot any other issues that may appear
Logging
Logging is disabled by default so as not to affect production apps.
To receive logs from the Nimbus SDK, call Nimbus.addLogger() and provide an implementation of the Logger interface. Nimbus provides a default logger implementation which will write the output to the console.
Nimbus.addLogger { priority, message ->// Your Logging code here}// orNimbus.addLogger(Nimbus.Logger.Default(Log.INFO)) // To print to the console at the Info level
Debugging Nimbus Errors
All NimbusError objects may optionally wrap an inner exception explaining the cause of the error. For more details on an error use the following code in your error listeners