igloo_dio_logger 1.2.0 copy "igloo_dio_logger: ^1.2.0" to clipboard
igloo_dio_logger: ^1.2.0 copied to clipboard

A beautiful HTTP request/response logger for Dio with ANSI colors, emojis, and advanced filtering options.

๐Ÿ”— 1.2.0 #

โœจ New Features #

  • ๐Ÿ”— Added logCurl: false โ€” opt-in cURL command logging after each request
    • Printed as a full bordered block (โ•”โ•โ•โ• ๐Ÿ”— cURL โ•โ•โ•...) consistent with request/response style
    • FormData โ†’ --form flags per field; files use --form 'key=@"filename"' placeholder
    • Binary body (Uint8List / List<int>) โ†’ body omitted with a โš ๏ธ note: "save bytes to a file and use --data-binary '@/path'"
    • Unknown body type โ†’ body omitted with a note showing the runtime type
    • Single quotes are safely escaped (' โ†’ '\'') for valid bash syntax
    • Includes -L for redirect following (matches Dio default behaviour)
    • Syntax is bash/zsh/fish; a # bash/zsh/fish hint is shown for clarity
  • ๐ŸŒ LoggerConstants is now exported as public API โ€” allows access to startTimeKey and other constants from outside the package

๐Ÿ› Bug Fixes #

  • ๐Ÿ” includeEndpoints / excludeEndpoints now match against the URL path only โ€” anchored patterns like r'^/api' now work correctly whether a full URL or bare path is passed to Dio
  • ๐Ÿ—‚๏ธ _calculateSize now correctly computes size for FormData (sums text field bytes instead of returning "Instance of 'FormData'".length)
  • ๐Ÿ–จ๏ธ _formatJson now renders FormData as readable key = value pairs instead of Instance of 'FormData'
  • ๐Ÿ”‘ Request start time key namespaced to _igloo_dio_logger_start_time โ€” prevents collision with other interceptors using options.extra
  • ๐Ÿ”€ Separator โ”‚ in error block now uses LoggerConstants.separator โ€” consistent with response block

โœจ 1.1.3 #

๐Ÿ› Bug Fixes #

  • ๐Ÿ›ก๏ธ When multiple wrapper keys match in a response, Items: is now hidden to avoid showing an ambiguous count

โœจ 1.1.2 #

โœจ New Features #

  • ๐Ÿ“‹ Items: count now also detects common wrapper keys (data, items, results, users, posts, products, records, list, content, entries) โ€” works with most real-world APIs, not just plain root arrays

๐Ÿ”ง 1.1.1 #

๐Ÿ› Bug Fixes #

  • ๐Ÿงน Removed redundant dart:typed_data import (already provided by flutter/foundation.dart)
  • ๐Ÿ“ฆ Tightened dio dependency constraint to ^5.9.2 to fix lower bound compatibility issue

๐Ÿš€ 1.1.0 #

โœจ New Features #

  • ๐Ÿ“‹ Added Items: N to response status line when root response is a List
  • ๐Ÿ”ข Array item closing comments now show zero-based index: // [0], // [1], etc.
  • ๐Ÿชœ Fixed nested array tracking โ€” each array depth now tracked independently via stack

๐Ÿ› Bug Fixes #

  • ๐Ÿท๏ธ Fixed error response body label showing class name instead of "Response:"
  • ๐Ÿ“ฆ Reordered _calculateSize checks โ€” Uint8List now checked before List<int> (more specific first)

โ™ป๏ธ Refactoring #

  • โž• Explicit dart:typed_data import added
  • ๐Ÿงน Removed unused lineIndex variable in JSON printer loop
  • โšก Simplified structural token check in colorizer using const Set
  • ๐Ÿ—‘๏ธ Removed unused textItemComment constant

๐Ÿ› 1.0.1 #

  • ๐Ÿ”ง Fixed JSON array item comment bug (was showing "LoggerConstants.textItemComment" instead of "// item")
  • ๐Ÿ“ Renamed file from colored_dio_logger.dart to igloo_dio_logger.dart to match class name
  • ๐Ÿ“ Renamed test file from colored_dio_logger_test.dart to igloo_dio_logger_test.dart for consistency

๐ŸŽ‰ 1.0.0 #

  • ๐ŸŽจ Initial release
  • ๐ŸŒˆ Beautiful colored HTTP logging with ANSI colors
  • ๐Ÿ˜€ Emoji status indicators for HTTP status codes
  • ๐Ÿ“Š Request/Response size tracking
  • โฑ๏ธ Duration tracking
  • ๐Ÿ” Advanced filtering options (endpoints, errors, duration)
  • ๐Ÿ“ฆ Pretty JSON formatting with syntax highlighting
  • ๐ŸŽฏ Smart header wrapping for long values
  • โšก Production-safe (only logs in debug mode)
4
likes
160
points
364
downloads

Documentation

API reference

Publisher

verified publisherigloodev.in

Weekly Downloads

A beautiful HTTP request/response logger for Dio with ANSI colors, emojis, and advanced filtering options.

Repository (GitHub)
View/report issues

Topics

#dio #logging #http #networking #debugging

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on igloo_dio_logger