Skip to content

Iteo/simple_chopper_logger

Repository files navigation

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