Documentation

ErrorLogging

A Swift protocol for modeling an error reporting service.

Currently used by ErrorLogController, BugsnagLogController and ConsoleLogController to provide unified error reporting.

Usage

final class CustomErrorLogController: ErrorLogging {

    func log(_ error: Error, message: String? = nil) {
        // log error object with an optional message.
    }

    func log(errorNamed error: String, message: String? = nil) {
        // Given a string, log an error with an optional message.
    }
}