flutter_pretty_dio_logger

Show the correct json format, easy to copy and use.

Usage

import 'package:flutter_pretty_dio_logger/flutter_pretty_dio_logger.dart';
Dio dio = Dio();
dio.interceptors.add(
  PrettyDioLogger(
    requestHeader: true,
    queryParameters: true,
    requestBody: true,
    responseHeader: true,
    responseBody: true,
    error: true,
    showProcessingTime: true,
    debugOnly: true,
  ),
);

How it looks like

Response Example

This package is inspired by the pretty_dio_logger package.