igloo_http_logger 1.1.0 copy "igloo_http_logger: ^1.1.0" to clipboard
igloo_http_logger: ^1.1.0 copied to clipboard

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

🔗 1.1.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
    • Includes -L for redirect following
    • http.Request-d '...' with JSON compaction and single-quote escaping
    • http.MultipartRequest--form flags per field; files use --form 'key=@"filename"' placeholder
    • http.StreamedRequest → body omitted with a ⚠️ note: "body bytes not available at log time"
    • Single quotes in body are safely escaped (''\'') for valid bash syntax
    • Syntax is bash/zsh/fish; a # bash/zsh/fish comment is shown for clarity
  • 🌍 LoggerConstants is now exported as public API — allows access to regex patterns and other constants from outside the package

🐛 Bug Fixes #

  • 🔀 Separator in error block now uses LoggerConstants.separator — consistent with response block
  • ♻️ Inline regex patterns in _json_formatter.dart replaced with LoggerConstants.reOpenBrace, reKeyValue, reNumber — compiled once as static final

🔧 1.0.1 #

📝 Documentation #

  • Updated igloo_dio_logger reference from "sister package" to "companion package" in README

🎉 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
  • 🔢 Array item annotations — items labeled // [0], // [1], etc.
  • 📋 Items: count in status line — detects root List responses and common wrapper keys (data, items, results, users, posts, products, records, list, content, entries)
  • 🛡️ When multiple wrapper keys match, Items: is hidden to avoid showing an ambiguous count
  • 🔍 Advanced filtering options (endpoints, errors, slow requests)
  • 📦 Pretty JSON formatting with syntax highlighting
  • 🎯 Smart header wrapping for long values (e.g. JWT tokens)
  • ⚡ Production-safe (only logs in debug mode)
2
likes
160
points
104
downloads

Documentation

API reference

Publisher

verified publisherigloodev.in

Weekly Downloads

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

Repository (GitHub)
View/report issues

Topics

#http #logging #networking #debugging

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on igloo_http_logger