Skip to content
pubscout

talker_dio_logger

5.2.0, released 4 weeks ago by frezycode.com

A lightweight, customizable logger for Dio HTTP client built on Talker.

WASM-readyRock solid
$ flutter pub add talker_dio_logger
Source repository

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.

Works with

Packages commonly used together with talker_dio_logger: ones it builds on, ones built on it, and its own family.