Skip to content

rohanjsh/loggycian_flutter

Repository files navigation

Loggycian Flutter

style: very good analysis Powered by Mason

A powerful logging and debugging toolkit for Flutter applications. Currently featuring network logging capabilities with support for navigation, analytics, and more debugging tools coming soon.

Features 🚀

  • 📊 Network Logging
    • View HTTP requests and responses in real-time
    • Support for Dio, HTTP package, and GraphQL
    • Filter and search capabilities
    • Copy request/response data and cURL commands
  • 🔜 Coming Soon
    • Navigation logging
    • Analytics events tracking
    • Performance metrics
    • State management debugging

Installation 💻

❗ In order to start using Loggycian Flutter you must have the Flutter SDK installed on your machine.

Install via flutter pub add:

dart pub add loggycian_flutter

Basic Usage 📱

  1. Wrap your app with Loggycian:
void main() {
  runApp(
    Loggycian(
      app: MyApp(),
      visible: !kReleaseMode, // Optional: Only show in debug mode
    ),
  );
}
  1. Add interceptors to your HTTP clients:
// For Dio
final dio = Dio()..interceptors.add(DioInterceptor());

// For HTTP package
final client = HttpInterceptor(http.Client());

// For GraphQL
final link = GqlInterceptor(HttpLink('YOUR_GRAPHQL_ENDPOINT'));
  1. That's it! The debug button will appear on your screen. Tap it to view logs.