logger_barta 0.1.4 copy "logger_barta: ^0.1.4" to clipboard
logger_barta: ^0.1.4 copied to clipboard

A structured, colorful logger for Flutter. Logs APIs, WebSockets, errors, cURL commands, and debug prints. Includes an in-app viewer and is release-safe.


0.1.3 — Latest #

Enhancements #

  • Complete README Rewrite: Re-wrote the entire documentation to clearly explain the package's benefits, describe all 5 major features in detail, and explain how and when to use them.

0.1.2 #

Bug Fixes #

  • JSON String Formatting — Fixed an issue in JsonColorizer where raw JSON strings passed to requestBody or responseBody were escaped into a single line. They are now properly decoded, pretty-printed, and syntax-highlighted.
  • README Updates — Expanded documentation to showcase all available fields for network logging.

0.1.1 #

Bug Fixes #

  • README rendering fix — Replaced HTML <img> tags with standard Markdown image tags in README.md to ensure screenshots render correctly on pub.dev.

0.1.0 — Initial Release #

Features #

Core Logging

  • BartaLog.debug — Debug-level messages with optional tag
  • BartaLog.success — Success confirmations with green output
  • BartaLog.error — Error messages with stack trace support
  • BartaLog.trace — Granular trace-level output
  • BartaLog.fatal — Fatal error logging

Network Inspection

  • BartaLog.network — Fully optional GET/POST/etc. request + response logging with Postman-style bordered output
  • BartaLog.curl — Standalone cURL command formatter

WebSocket Logging

  • BartaLog.socketOn — Inbound socket event logger
  • BartaLog.socketEmit — Outbound socket event logger

Configuration & Control

  • BartaLevel — Runtime verbosity control: trace / debug / info / warning / error / fatal / off
  • Pluggable BartaLogFilter — Custom rules to include or suppress log entries
  • Pluggable BartaLogOutput — Route logs to console, streams, or external services
  • BartaLogTheme — Themeable console output colors

Storage & Performance

  • In-memory circular-buffer log storage — prevents memory leaks in long-running sessions
  • Zero-cost in release mode — no-op by default unless explicitly enabled

UI

  • BartaLogViewer widget — Optional in-app log viewer with vertical/horizontal layout support
1
likes
155
points
274
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A structured, colorful logger for Flutter. Logs APIs, WebSockets, errors, cURL commands, and debug prints. Includes an in-app viewer and is release-safe.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on logger_barta