pretty_dio_logger 1.1.1
pretty_dio_logger: ^1.1.1

Dart native js
Flutter Android iOS web

Pretty Dio logger is a Dio interceptor that logs network calls in a pretty, easy to read format.

pretty_dio_logger #

Pretty Dio logger is a Dio interceptor that logs network calls in a pretty, easy to read format.

Usage #

Simply add PrettyDioLogger to your dio interceptors.

Dio dio = Dio();
dio.interceptors.add(PrettyDioLogger());
// customization
   dio.interceptors.add(PrettyDioLogger(
        requestHeader: true,
        requestBody: true,
        responseBody: true,
        responseHeader: false,
        error: true,
        compact: true,
        maxWidth: 90));

How it looks like #

VS Code #

Request Example Error Example

Android studio #

Response Example

61
likes
100
pub points
95%
popularity

Pretty Dio logger is a Dio interceptor that logs network calls in a pretty, easy to read format.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

milad.akarie@gmail.com

License

MIT (LICENSE)

Dependencies

dio

More

Packages that depend on pretty_dio_logger