Skip to content
pubscout

simple_chopper_logger

2.0.0, released 2 years ago by iteo.com

Request and response interceptor for Chopper that outputs readable logs.

WASM-ready
$ flutter pub add simple_chopper_logger
Source repository

What it does

Simple Chopper Logger provides interceptors for the Chopper HTTP client to print formatted and readable request and response logs. It helps developers inspect network traffic directly from the console.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using the Chopper HTTP client and need readable console output for network requests and responses.
  • You want a simple logging solution without complex configuration.

Skip it when

  • You are using a different HTTP client like Dio or http.
  • You need advanced crash reporting or remote logging integrations rather than console output.

Strengths

  • Provides pleasant-to-look-at output for requests and responses.
  • Easy to integrate into an existing Chopper client setup.

Weaknesses

  • Limited to the Chopper HTTP client.
  • No documentation provided for advanced filtering or remote log transmission.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

Just add SimpleChopperLogger() to your ChopperClient interceptors list.

import 'package:simple_chopper_logger/simple_chopper_logger.dart';

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

Alternatives

Packages that do the same job and could replace simple_chopper_logger.

  • alice

    Advanced HTTP network inspector and logger with a native UI for Flutter.

  • alice_dio

    Dio interceptor and network logger for Alice network inspector UI

  • dio

    A powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.

  • chucker_flutter

    Inspect HTTP(S) requests, responses, and network traffic with a built-in UI and local storage.

Works with

Packages commonly used together with simple_chopper_logger: ones it builds on, ones built on it, and its own family.