stackdriver_dart 1.1.0
stackdriver_dart: ^1.1.0 copied to clipboard
logging stackdriver report
This package report to Google Cloud Error Reporting. It's multi-platform. Http request supported via http and dio package.
Usage #
To See /example
folder.
Initialize #
Future main() async {
final config = Config(
projectId: "PROJECT_ID",
key:"API_KEY",
service: 'my-app',
version: "1.0.0");
final reporter = StackDriverErrorReporter();
reporter.start(config);
runZonedGuarded(() async {
runApp(const MyApp());
}, (error, trace) {
reporter.report(err: error, trace: trace);
});
}
copied to clipboard