dio_logger 3.0.9+5
dio_logger: ^3.0.9+5

Dart native js
Flutter Android iOS web

Simple logging library for DIO requests. Prints request and response information to a console.

dio_logger #

Simple logging interceptor for Dio.

Usage: #

final dio = Dio();
dio.interceptors.add(DioLoggerInterceptor)

Sample output: #

┌------------------------------------------------------------------------------
| [DIO] Request: GET https://myapi.com/users/3
| {}
| Headers:
| content-type: application/json; charset=utf-8
| accept: application/json; charset=utf-8
| cache-control: no-cache
| Access-Token: DJmdklfja3r3Ffmejwhfdgjh
├------------------------------------------------------------------------------
| [DIO] Response [code 200]: {"email":"justdevelopers@gmail.com","name":"defuera"}
└------------------------------------------------------------------------------

Features #

  • Log request method
  • Log query paramethers
  • Log request body
  • Log response code
  • Log response body
3
likes
90
pub points
58%
popularity

Simple logging library for DIO requests. Prints request and response information to a console.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

justdevelopers@gmail.com

License

BSD (LICENSE)

Dependencies

dio

More

Packages that depend on dio_logger