A description of this package. TBD.
extension ErrorReporting.Destination {
static let sentry = ErrorReporting.Destination { report in
SentrySDK.capture(error: report.nsError())
}
}
extension ErrorReporting.Destination {
static let crashlytics = ErrorReporting.Destination { report in
Crashlytics.crashlytics().record(error: report.nsError())
}
}
ErrorReporting.main = ErrorReporting(destinations: [.console, .sentry, .crashlytics])
ErrorReporting.main.report(MyCustomError())