acta 0.0.5 copy "acta: ^0.0.5" to clipboard
acta: ^0.0.5 copied to clipboard

A tool for application management that captures events and errors in a structured and extensible way.

example/lib/example.dart

import 'package:acta/acta.dart';
import 'package:example/custom_report.dart';
import 'package:example/screen.dart';
import 'package:flutter/material.dart';

void main() async {
  ActaJournal.initialize(
    reporters: [
      ReporterFactory.createReporter(ConsoleReporter()), // Non lazy Reporter
      ReporterFactory.createLazyReporter(() => CustomReport()), //Lazy Reporter
    ],
    options: const HandlerOptions(
      catchAsyncErrors:
          true, //Create new ZoneGuarded inside!!! be awere, if needed, of Lazy creation
      logFlutterErrors: true,
      logPlatformErrors: true,
      minSeverity: Severity.info,
      maxBreadcrumbs: 50,
    ),
    initialContext: {'appVersion': '1.0.0', 'build': 1, 'env': 'dev'},
    beforeSend: (report) => report,
    appRunner: () => oldMain(),
  );
}

void oldMain() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const Screen());
}
0
likes
160
points
66
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A tool for application management that captures events and errors in a structured and extensible way.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, hive, hive_flutter, http, mongo_dart

More

Packages that depend on acta