flutter_loggy_dio
3.1.0, released 3 years ago by infinum.com
Provides a Dio interceptor and pretty printer for Loggy logs.
What it does
Adds a Dio interceptor that logs request and response data using Loggy. It formats logs in a readable, pretty style.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You already use Loggy for logging and want to log Dio network calls
- You need pretty, structured logs for debugging HTTP requests
- You want a quick way to add logging to an existing Dio client
Skip it when
- You are not using Loggy or prefer another logging solution
- You need advanced network features beyond logging
- You are targeting a platform that does not support Dio
Strengths
- Easy integration with existing Loggy setup
- Pretty, readable logs for debugging
- Supports Dio 5.0.0 and above
Weaknesses
- Only works with Loggy, not standalone
- No additional network functionality beyond logging
- Limited to Dio, not other HTTP clients
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add dependency, import package, and add the interceptor to your Dio instance: ```dart import 'package:flutter_loggy_dio/flutter_loggy_dio.dart'; final dio = Dio(); dio.interceptors.add(LoggyDioInterceptor()); ```
```dart
import 'package:flutter_loggy_dio/flutter_loggy_dio.dart';
final dio = Dio();
dio.interceptors.add(LoggyDioInterceptor());
```Alternatives
Packages that do the same job and could replace flutter_loggy_dio.
- flutter_cache_manager_dio
A Dio‑based cache manager that extends flutter_cache_manager for downloading and caching files.
46Compare - pretty_dio_logger
A Dio interceptor that logs network calls in a pretty, easy to read format.
50Compare - dio_http_formatter
Dio interceptor that pretty‑prints HTTP requests and responses to the console.
49Compare
Works with
Packages commonly used together with flutter_loggy_dio: ones it builds on, ones built on it, and its own family.
- dioflutter_loggy_dio depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- loggyflutter_loggy_dio depends on itLogger for Dart and Flutter applications using mixins for separation
- flutter_loggySame familyLoggy extension to use 'developer.log' with pretty printer in Flutter
- google_visionBuilt on flutter_loggy_dioIntegrates Google Vision REST API features for image analysis and OCR.