dio_logger

Creator: coderz1093

Last updated:

0 purchases

dio_logger Image
dio_logger Images

Languages

Categories

Add to Cart

Description:

dio logger

dio_logger #
Simple logging interceptor for Dio.
Usage: #
final dio = Dio();
dio.interceptors.add(DioLoggerInterceptor)
copied to clipboard
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":"[email protected]","name":"defuera"}
└------------------------------------------------------------------------------
copied to clipboard
Features #

Log request method
Log query paramethers
Log request body
Log response code
Log response body

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.