resultex_logger 1.1.1
resultex_logger: ^1.1.1 copied to clipboard
A lightweight, high-performance, and colorized logging system for Flutter and Dart built on top of native developer.log
Changelog #
All notable changes to this project will be documented in this file.
1.1.1 - 2026-07-02 #
- Updated GitHub repository url
- Updated environment sdk and flutter version
1.1.0 - 2026-07-01 #
Added #
- Introduced strong-typed severity control via the new
LogLevelenum (supporting numerical Syslog weights). - Added
LogDetailsdata transfer object (DTO) to encapsulate metadata, payloads, errors, and stack traces. - Added environment-aware log level filtering with
minLogLevelconfiguration to easily suppress diagnostic logs in production. - Unified Group Lifecycle Tracing: Enhanced the
group()utility with an explicit, secure🔻 END GROUPlifecycle marker to visually isolate scoped processes in console streams.
Changed #
- Advanced Terminal UI Box-Enclosure: Upgraded
error,critical, andwarninglog levels to automatically render inside fully enclosed, symmetric visual boxes for immediate error boundaries and scanning. - Symmetric Multi-line & Content Coloring: Rewrote the layout engine to calculate the maximum line length dynamically, ensuring internal text contents and vertical borders are uniformly colorized without breaking console layout.
- Refactored for SOLID & Clean Architecture: Separated presentation layers by decoupling ANSI
styling into a dedicated
LoggerStylesclass and abstracting layout behaviors into a solidLoggerFormattercontract strategy. - Enhanced Platform Compatibility (Linux/Desktop Color Fix): Routes logs to standard native
printon desktop platforms to bypass a known Flutter issue wheredeveloper.logstrips ANSI escape codes in Linux/Mac/Windows terminal streams, while seamlessly retainingdeveloper.logfor Web/WASM targets. - Seamless Structural Box Boundaries: Reworked the horizontal framing system to generate
continuous, flush headers and footers using a single customizable
lineSymbol, completely removing isolated distinct corner tokens.
Fixed #
- Fixed code duplication (DRY principle violation) by unifying error and stack trace extraction flows under a centralized nested pipeline.
- Monospace Grid Alignment & Escaped Padding: Fixed terminal layout misalignment where ANSI colors distorted length calculations by shifting to a 100% plain-text matrix calculation layer prior to code colorization.
- Asymmetric Wall Overflow: Eliminated the multi-line right-wall drift caused by bulk multiline
outputs by converting the formatter stream into an isolated
List<String>layer, ensuring uniform prefix tag injection ([INFO],[ERROR]) across every independent stdout line. - Vertical Font Margins: Resolved the broken vertical alignment caused by the keyboard pipe
character (
|) by unifying side walls to share the exact same structurallineSymbolcontext as horizontal borders, avoiding font-rendering gaps.
1.0.0 - 2026-07-01 #
Added #
- [Feature] Added ANSI colorized output support for terminal logs (
✅ Color logs). - [Feature] Implemented full
LogLevelssupport covering:info,verbose,warning,debug,error,critical,fine, andgood. - Created native
AppLoggerimplementation using Dartdeveloper.logfor full cross-platform and WASM compatibility. - Exported the core logger functionality via the main library entry point.
Changed #
- Decoupled
GetItConfiguration.init()from theAppLoggerconstructor to prevent circular dependencies. - Moved dependency injection initialization to the base lifecycle class (
ResultexLoggerBase). - Marked the package as non-publishable (
publish_to: 'none') to support local path dependencies.
In Progress (🚧 Under Development) #
- 🚧 Logs grouping: Designing a structured API to visually group and nest related runtime operations.
- 🚧 Collapsible feature for huge logs: Developing a smart multi-line block layout to handle massive payloads and stack traces cleanly.