0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.