dynamic_logger 0.2.1
dynamic_logger: ^0.2.1 copied to clipboard
A simple and structured logger for Dart applications.
0.2.1 #
- Fix footer output
0.2.0 #
- BREAKING: Refactored core formatting logic for significantly improved memory efficiency, especially with large data structures. Uses
StringBuffermore effectively and reduces intermediate string creation. - Feature: Added configurable truncation for large/deep data structures:
- Introduced
maxDepthandmaxCollectionEntrieslimits. - Added
DynamicLogger.configureto set global defaults for truncation, limits, and the log handler. - Added
truncate,maxDepth, andmaxCollectionEntriesparameters toDynamicLogger.logfor per-call overrides.
- Introduced
- Feature: Added
DynamicLogger.formatDatastatic utility to format data structures into strings without logging, respecting truncation rules. - Fix: Improved JSON/List formatting to be more standard (correct indentation, quoting of strings, comma placement, handling of empty collections).
- Fix: Corrected indentation for top-level primitive/string logs to align directly under the header.
- Fix: Improved header/footer appearance using single-line box characters.
- Chore: Removed dependency on the
collectionpackage. - Chore: Added internal error handling during formatting to prevent logger crashes on unexpected data.
0.1.1 #
- Downgrade
collectionto 1.19.0
0.1.0 #
- Initial release of DynamicLogger.