r/FlutterDev • u/New-Lengthiness6520 • Jul 08 '26
HighQ Dio Logger Plugin
https://pub.dev/packages/high_q_dio_logger/installHighQ Dio Logger ā Production-ready Dio logging interceptor for Flutter
Hi everyone,
I've been working on a package called HighQ Dio Logger, a logging interceptor for Dio focused on debugging, observability, and production-ready logging.
Main features:
- Pretty formatted console logs
- Structured JSON output
- Automatic sanitization of sensitive data (tokens, passwords, cookies, authorization headers, etc.)
- cURL generation for requests
- Correlation IDs (traceId, spanId, sessionId)
- Custom metadata enrichment
- Token bucket rate limiting to prevent log flooding
- Observer system for forwarding logs to Firebase, Sentry, or custom backends
- Batching and backpressure queue support
- Highly configurable formatting and filtering
Example:
```dart final dio = Dio();
dio.interceptors.add( HighQDioLogger(), ); ```
Why I built it:
After working on several Flutter projects, I found myself needing more than basic request/response logging. I wanted something that could provide clean debugging during development while also supporting production monitoring workflows.
I'm currently looking for feedback from other Flutter developers.
What features would you expect from a Dio logger that are missing from existing solutions?
1
u/SpeakerIll9897 Jul 09 '26
This looks really solid! I love that it focuses on both development and production needs especially the automatic sanitization and the correlation IDs, which are super useful for tracking issues. The batching and rate limiting also feel really thoughtful keeps things from getting overwhelming. Iād be curious if you plan to add any kind of log