Search packages, repositories and app categories

Package detailsv4.0.8+8

dio_logger

Simple logging library for DIO requests. Prints request and response information to a console.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
5
Likes
24
Pub points
140

Install package

flutter pub add dio_logger

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Dio Logger is a lightweight debugging tool for the DIO HTTP client in Flutter, designed to log detailed information about HTTP requests and responses directly to the console. It automatically captures request URLs, headers, method types, request bodies, response data, status codes, and timestamps, making it easier to trace network behavior during development. Ideal for quickly identifying issues in API communication without requiring complex setup. The package integrates seamlessly with existing DIO configurations and supports all major platforms including mobile, web, and desktop.

Use cases

  • Debugging API calls
  • Monitoring request/response flow
  • Troubleshooting network issues
  • Development-time logging
  • Tracking endpoint behavior

Key features

  • Automatic request/response logging
  • Console output with timestamps
  • Supports all DIO methods
  • Minimal configuration
  • Cross-platform compatibility

Suitable for

  • Developers in active debugging phase
  • Teams using DIO for HTTP operations
  • Projects requiring simple network inspection

Considerations

  • Not intended for production use
  • Logs may expose sensitive data
  • No customization for log format
  • Limited to console output
  • May impact performance in high-frequency scenarios

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

dio_logger

Simple logging interceptor for Dio.

Usage:

final dio = Dio();
dio.interceptors.add(dioLoggerInterceptor)

Sample output:

┌------------------------------------------------------------------------------
| [DIO] Request: GET https://myapi.com/users/3
| {}
| Headers:
| content-type: application/json; charset=utf-8
| accept: application/json; charset=utf-8
| cache-control: no-cache
| Access-Token: DJmdklfja3r3Ffmejwhfdgjh
├------------------------------------------------------------------------------
| [DIO] Response [code 200]: {"email":"justdevelopers@gmail.com","name":"defuera"}
└------------------------------------------------------------------------------

Features

  • Log request method
  • Log query paramethers
  • Log request body
  • Log response code
  • Log response body

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.