flutter_pretty_dio_logger 3.0.0 copy "flutter_pretty_dio_logger: ^3.0.0" to clipboard
flutter_pretty_dio_logger: ^3.0.0 copied to clipboard

Show the correct json format, cUrl, easy to copy and use for many purposes.

flutter_pretty_dio_logger #

Show the correct json format, cUrl, easy to copy and use for many purposes.

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,
    showCUrl: true,
    // canShowLog: kDebugMode,
  ),
);

How it looks like #

cUrl Example
Response Example

This package is inspired by pretty_dio_logger and curl_logger_dio_interceptor packages.

25
likes
150
points
29.6k
downloads

Publisher

unverified uploader

Weekly Downloads

Show the correct json format, cUrl, easy to copy and use for many purposes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio

More

Packages that depend on flutter_pretty_dio_logger