Skip to content
pubscout

flutter_loggy_dio

3.1.0, released 3 years ago by infinum.com

Provides a Dio interceptor and pretty printer for Loggy logs.

WASM-ready
$ flutter pub add flutter_loggy_dio
Source repository

What it does

Adds a Dio interceptor that logs request and response data using Loggy. It formats logs in a readable, pretty style.

AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You already use Loggy for logging and want to log Dio network calls
  • You need pretty, structured logs for debugging HTTP requests
  • You want a quick way to add logging to an existing Dio client

Skip it when

  • You are not using Loggy or prefer another logging solution
  • You need advanced network features beyond logging
  • You are targeting a platform that does not support Dio

Strengths

  • Easy integration with existing Loggy setup
  • Pretty, readable logs for debugging
  • Supports Dio 5.0.0 and above

Weaknesses

  • Only works with Loggy, not standalone
  • No additional network functionality beyond logging
  • Limited to Dio, not other HTTP clients

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2

Add dependency, import package, and add the interceptor to your Dio instance: ```dart import 'package:flutter_loggy_dio/flutter_loggy_dio.dart'; final dio = Dio(); dio.interceptors.add(LoggyDioInterceptor()); ```

```dart
import 'package:flutter_loggy_dio/flutter_loggy_dio.dart';

final dio = Dio();
dio.interceptors.add(LoggyDioInterceptor());
```

Alternatives

Packages that do the same job and could replace flutter_loggy_dio.

Works with

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