ArcodeLog Flutter

This plugin allows you to easily log events in your application. It starts logging when the app is launched and logs page navigations. No special configuration is required for both Android and iOS.

Features

  • Automatically log screen transitions during page navigation.

Setup

  1. Add the plugin to your pubspec.yaml file:
dependencies:
  arcode_log: ^1.0.0
  1. Update your main.dart file to start using the plugin in your project.

Usage

Start the logging process when the application is launched. To do this, add the following code to your main.dart file:

import 'package:arcode_log/arcode_log.dart';

void main() async {
  // Start the LogManager
  await ArcodeLogManager.instance.init();

  runApp(MyApp());
}

This process ensures that logging is started when the application is launched.

To log screen transitions during page navigation, use the following code:

onRoute(RouteSettings args) {
  // Add screen log function
  ArcodeLogManager arcodeLog = ArcodeLogManager.instance;    
  arcodeLog.screen(args.name, arguments: (args.arguments as Map<String, dynamic>?) ?? {});
}

Support

If you have any issues or need help, feel free to reach out to us on GitHub.

License

This project is licensed under the MIT License.