Error Logging Guide
The SDK logs errors related to network calls, the camera and file reading to Gini Bank API when the default networking implementation is used. You can deactivate the default error logging by passing false
to GiniCapture.Builder.setGiniErrorLoggerIsOn()
. If you want to get informed of the error logging events, pass your implementation of the ErrorLoggerListener
interface to GiniCapture.Builder
:
class CustomErrorLogger: ErrorLoggerListener {
override fun handleErrorLog(errorLog: ErrorLog) {
// Handle the error log event
}
}
GiniCapture.newInstance()
.setCustomErrorLoggerListener(CustomErrorLogger())
.build();