• Stars
    star
    215
  • Rank 183,925 (Top 4 %)
  • Language
    Dart
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

pretty_dio_logger

Pub

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