• Stars
    star
    208
  • Rank 182,957 (Top 4 %)
  • Language
    Dart
  • License
    MIT License
  • Created over 4 years ago
  • Updated about 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