awesome_dio_interceptor
1.3.0, released 2 years ago by devmuaz.com
A simple Dio log interceptor with coloring features and JSON formatting.
What it does
It acts as a Dio interceptor to log HTTP requests and responses in a readable, colorful, and formatted manner. It supports JSON formatting, minimized outputs, and pretty FormData support for fields and files.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want readable, color-coded HTTP request and response logs in your Dio-based app
- You need to log FormData fields and files nicely during development
Skip it when
- You do not use Dio for networking
- You require a heavy-weight network inspector UI tool rather than console logging
Strengths
- Provides colored and JSON-formatted output for better readability
- Supports pretty printing of FormData fields and files
- Allows minimizing header and timeout logs to reduce clutter
Weaknesses
- Limited to console logging without an in-app visual inspector GUI
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
dio.interceptors.add(
AwesomeDioInterceptor(
logRequestTimeout: false,
logRequestHeaders: false,
logResponseHeaders: false,
logger: debugPrint,
),
);Alternatives
Packages that do the same job and could replace awesome_dio_interceptor.
- sentry_logging
Adds Sentry logging integration for the Dart logging package
90Compare - floating_logger
A floating widget for real-time API request logging and debugging in Flutter.
73Compare - dio_request_inspector
A HTTP inspector for Dio, which can intercept and log HTTP requests and responses.
50Compare - network_logger
Network logger with user interface to inspect traffic logs and Dio interceptor.
50Compare
Works with
Packages commonly used together with awesome_dio_interceptor: ones it builds on, ones built on it, and its own family.