Skip to end of banner
Go to start of banner

Error Logging Guide

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Gini Bank SDK logs errors to the Gini Bank API when the default networking implementation is used (see Default Implementation). We log only non-sensitive information like response status codes, headers, and error messages.

You can disable the default error logging by passing false to GiniBankConfiguration.shared.giniErrorLoggerIsOn.

If you want to get informed of error logging events, set GiniBankConfiguration.shared.customGiniErrorLoggerDelegate which confirms to GiniCaptureErrorLoggerDelegate:

class CustomErrorLogger: GiniCaptureErrorLoggerDelegate {
    func handleErrorLog(error: ErrorLog) {
        //TODO
    }
}

let configuration = GiniBankConfiguration.shared
configuration.customGiniErrorLoggerDelegate = CustomErrorLogger()

  • No labels