Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 727 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 727 Bytes

Simple Chopper Logger

Simple Chopper Logger is a Chopper interceptor that prints request and response logs in a readable format.

Usage

To use Simple Chopper Logger just add it to your Chopper client:

import 'package:simple_chopper_logger/simple_chopper_logger.dart';

final chopperClient = ChopperClient(
  baseUrl: 'YOUR_BASE_URL',
  services: [
    // Your services here
  ],
  interceptors: [
    SimpleChopperLogger(),
  ],
);

How it looks like

Request

Example Request

Response

Example Response