talker_dio_logger
5.2.0, released 4 weeks ago by frezycode.com
A lightweight, customizable logger for Dio HTTP client built on Talker.
What it does
It intercepts Dio requests and responses, printing formatted logs with optional colors, filters, and custom settings. Logs can be routed to a Talker instance for unified tracking.
AI-written summary of version 5.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need detailed, customizable logging for Dio network calls
- You already use Talker for logging and want integration
- You want easy toggling of request/response data and headers
Skip it when
- You are not using Dio (e.g., using http package)
- You need a logger that works without Talker
- Performance-critical apps where logging overhead must be zero
Strengths
- Highly customizable (colors, filters, selective data)
- Seamless integration with Talker
- Simple setup via interceptor
Weaknesses
- Works only with Dio, not other HTTP clients
- Adds dependency on Talker for full features
- Logging overhead may affect very high‑frequency requests
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
final dio = Dio();
dio.interceptors.add(TalkerDioLogger(settings: const TalkerDioLoggerSettings(printRequestHeaders:true, printResponseHeaders:true, printResponseMessage:true)));
Alternatives
Packages that do the same job and could replace talker_dio_logger.
- http2
An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.
91Compare - dio_web_adapter
Web and WASM HTTP client adapter for Dio.
83Compare - cronet_http
An Android Flutter plugin providing access to the Cronet HTTP client.
87Compare - alice_dio
Dio interceptor and network logger for Alice network inspector UI
82Compare
Works with
Packages commonly used together with talker_dio_logger: ones it builds on, ones built on it, and its own family.
- diotalker_dio_logger depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- talkertalker_dio_logger depends on itAdvanced error handler and logger package for Flutter and Dart apps.
- talker_loggerSame familyLightweight, customizable logger with filters, formatters and log levels
- talker_flutterSame familyAdvanced error handler and logger package for Flutter and Dart applications
- talker_bloc_loggerSame familyLightweight and customizable logger for BLoC and Cubit built on Talker.
- talker_riverpod_loggerSame familyLightweight and customizable Riverpod state management logger based on Talker.
- talker_http_loggerSame familyLightweight and customizable HTTP client logger based on Talker for Dart and Flutter.
- storage_viewSame familyFlutter widget to inspect and edit key‑value storage such as shared_preferences.