logger_rs 1.0.3
logger_rs: ^1.0.3 copied to clipboard
A beautiful Rust-style logger for Dart with colored output, precise file locations, and clean formatting inspired by the Rust compiler.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.3 #
WARNING
in capital letters
1.0.2 #
Added #
- Full Web platform support with conditional imports
- WASM runtime compatibility
- Support for all 6 Dart platforms (Android, iOS, Windows, macOS, Linux, Web)
Changed #
- Replaced
dart:io
imports with conditional platform abstraction - Improved cross-platform console output handling
- Enhanced Web browser console integration
Fixed #
- Web platform compatibility issue that prevented deployment
- WASM runtime compatibility for future-proofing
- Platform detection now works correctly across all environments
Technical Details #
- Implemented conditional imports for platform-specific code
- Added platform abstraction layer (
platform_io.dart
,platform_web.dart
,platform_stub.dart
) - Ensured ANSI color codes work seamlessly on Web platforms
- Removed direct
dart:io
dependency from main logger code
1.0.1 #
1.0.0 - 2025-01-14 #
Added #
- Initial release of Logger RS
- Rust-style formatted output with beautiful colors
- Support for multiple log levels: Trace, Debug, Info, Warning, Error, Critical
- Precise file location tracking (file:line:column)
- ANSI color support for terminals
- Stack trace support for error logging
- Zero-configuration setup
- Cross-platform support (Flutter, Dart VM, Dart Native)
- High-performance logging with minimal overhead
- Custom object logging support
- Comprehensive test suite
- Complete documentation and examples
Features #
Log.t()
- Trace level logging (most verbose)Log.d()
- Debug level loggingLog.i()
- Info level loggingLog.w()
- Warning level loggingLog.e()
- Error level logging with optional stack tracesLog.f()
- Critical/Fatal level logging
Technical Details #
- Built on top of the
logging
package for reliability - Smart platform detection for color support
- Automatic caller location extraction from stack traces
- Clean and readable Rust-inspired formatting