pretty_dio_clean_logger 1.0.2
pretty_dio_clean_logger: ^1.0.2 copied to clipboard
A clean and customizable Dio logger that prints beautifully formatted request, response, and error logs with filtering support.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project follows Semantic Versioning.
1.0.2 - 2026-04-23 #
Changed #
- Updated the logger to support different default output strategies in debug and release modes
- Debug mode now buffers logs and flushes them through
dart:developer - Release mode now prints logs directly with
debugPrint - Added
enableLogOnReleaseto control whether logs appear in release builds - Added internal
_shouldLogguard to combineenabledand release-mode checks - Clarified support for custom
logPrintbehavior across all build modes
Documentation #
- Rewrote the README to document release logging behavior
- Added configuration details for
enableLogOnRelease - Added examples for default usage, filtering, and custom log printers
1.0.1 #
Fixed #
- Improved README to comply with pub.dev ASCII requirements
- Added proper LICENSE file for OSI approval recognition
- Updated
pubspec.yamlwith license field - Moved test-only dependencies to
dev_dependencies
1.0.0 - 2026-04-04 #
Added #
- Pretty formatted logging for Dio requests and responses
- Structured and readable log output with boxed layout
- Request logging with method and URL
- Request headers logging
- Request body logging for
Map,List, andFormData - Response logging with status code and response time
- Response headers logging
- Pretty JSON formatting for
MapandList - Error logging with detailed information
- Support for
DioException - Support for
Uint8Listlogging - Custom log printer support
- Configurable logging options
- Filter system to control which logs should be printed
- Compact mode for inline JSON printing
- Chunked printing for large responses
- Built as a Dio interceptor