logger_barta 0.1.2
logger_barta: ^0.1.2 copied to clipboard
A colorful, Postman/Swagger-style debug logger for Flutter — debug prints, API success/error, cURL, and socket in/out logging, fully optional fields, themeable, and safe in release builds.
0.1.2 — Latest #
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