Skip to main content

Collect logs

The Readers SDK provides a mechanism to collect logs, when the Readers SDK is initialized it's possible to provide an implementation of an interface Logger that will collects logs. Use your own implementation of this class to collect logs and bug reports.

Implements SDKLogger protocol

struct CustomSDKLogger: SDKLogger {

func log(message: String, level: LogLevel) {
//...
}
}

The log method receives the log message and log level(debug, info, notice, error).