pretty_dio_logger 1.0.8

Pretty Dio logger is a Dio interceptor that logs network calls in a pretty, easy to read format.

Usage

Simply add PrettyDioLogger to your dio interceptors.

Dio dio = Dio();
dio.interceptors.add(PrettyDioLogger());
// customization 
   dio.interceptors.add(PrettyDioLogger(
        requestHeader: true,
        requestBody: true,
        responseBody: true,
        responseHeader: false,
        error: true,
        compact: true,
        maxWidth: 90));

How it looks like

VS Code

Request Example Error Example

Android studio

Response Example

Libraries

pretty_dio_logger