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)
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":"justdevelopers@gmail.com","name":"defuera"}
└------------------------------------------------------------------------------
copied to clipboard
Features #
- Log request method
- Log query paramethers
- Log request body
- Log response code
- Log response body