logger_barta 0.1.4
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
JsonColorizerwhere raw JSON strings passed torequestBodyorresponseBodywere 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 inREADME.mdto ensure screenshots render correctly on pub.dev.
0.1.0 — Initial Release #
Features #
Core Logging
BartaLog.debug— Debug-level messages with optional tagBartaLog.success— Success confirmations with green outputBartaLog.error— Error messages with stack trace supportBartaLog.trace— Granular trace-level outputBartaLog.fatal— Fatal error logging
Network Inspection
BartaLog.network— Fully optional GET/POST/etc. request + response logging with Postman-style bordered outputBartaLog.curl— Standalone cURL command formatter
WebSocket Logging
BartaLog.socketOn— Inbound socket event loggerBartaLog.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
BartaLogViewerwidget — Optional in-app log viewer with vertical/horizontal layout support