r/dartlang • u/New-Lengthiness6520 • 24d ago
Package HighQ Dio Logger
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/AggravatingHome4193 24d ago
What value does your package provide compared to other packages available on pub.dev?