dio_logger 4.0.8+8
dio_logger: ^4.0.8+8 copied to clipboard

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
110
pub points
70%
popularity

Publisher

Unknown

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

dio

More

Packages that depend on dio_logger