http_client_logger 1.1.1
http_client_logger: ^1.1.1 copied to clipboard
Dart package that seamlessly adds HTTP traffic logging to your Dart or Flutter project.
1.1.1 #
Features #
- π Improved Request ID System: Replaced UUID with custom short ID generation
- π― Consistent IDs: Request IDs are now identical in HTTP headers and log output
- π Enhanced Log Format: Added request ID prefixes to all log lines for better tracking
- π Concurrent Request Support: Easy to follow multiple simultaneous requests
Technical Improvements #
- β‘ Removed UUID dependency: Custom 8-character ID generation using timestamp + random bits
- π Better Performance: Faster ID generation with guaranteed uniqueness
- π¨ Improved Log Formatting: Consistent indentation and clear request/response boundaries
- π οΈ Better Error Context: Error messages now include request IDs for easier debugging
Breaking Changes #
- None - fully backward compatible
1.1.0 #
Features #
- β¨ Added
Level.bodysupport for logging HTTP request and response bodies - π Enhanced request body logging for different request types (
Request,MultipartRequest) - π Improved response body logging with proper stream handling using
StreamSplitter - π Added support for logging multipart form fields and file information
- β‘ Implemented proper async handling to ensure correct log ordering
Technical Improvements #
- Added
asyncpackage dependency forStreamSplitterfunctionality - Enhanced error handling for body reading operations
- Improved UTF-8 decoding with malformed character support
- Added comprehensive documentation and performance warnings
Documentation #
- π Updated README with logging level explanations and performance considerations
- β οΈ Added performance warnings for body-level logging
- π οΈ Enhanced code examples with different logging levels
1.0.0 #
- Initial version.