performReportFlutterError method
Flutter Error 를 Report 합니다. ex: Crashlytics, Sentry
Implementation
@override
void performReportFlutterError(FlutterErrorDetails details) {
_forestLogger.info('Caught error: ${details.exception}');
// Errors thrown in development mode are unlikely to be interesting. You can
// check if you are running in dev mode using an assertion and omit sending
// the report.
if (isInDebugMode) {
// 디버그 모드에서는 전체 stacktrace를 출력합니다.
_forestLogger.info(details.stack);
_forestLogger.info('In dev mode. Not sending report to Sentry.io.');
return;
} else {
_forestLogger.info('performReport');
_crashReportTrees.forEach((tree) {
tree.performReportFlutterError(details);
});
}
}