dio_logger_plus 1.2.1
dio_logger_plus: ^1.2.1 copied to clipboard
A powerful and customizable Dio interceptor for Flutter that logs HTTP requests, responses, headers, and errors with pretty-printed JSON. Useful for debugging and development.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dio_logger_plus
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
dio_logger_plus: ^1.2.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dio_logger_plus/dio_logger_plus.dart';