Closed FMotalleb closed 6 months ago
The project has transitioned to a more robust logging system by integrating tracing
and tracing-subscriber
libraries. This change replaces the custom logging function vlog
with standardized logging levels (warn
, debug
, error
, trace
). Additionally, the init_logger
function has been introduced to configure logging settings dynamically, enhancing the flexibility and scalability of the application's logging capabilities.
File Path | Change Summary |
---|---|
Cargo.toml |
Added tracing and tracing-subscriber dependencies. |
src/ansi_to_image/.../*.rs |
Replaced vlog calls with tracing macros like warn , debug , and trace . Added relevant imports. |
src/logging/logger.rs , src/logging/mod.rs |
Major overhaul of logging setup, including new imports and removal of old logging state management. Introduced init_logger . |
src/lib.rs , src/main.rs |
Updated public interfaces and main application logic to utilize new logging setup. |
🐇💬 "A change in the logs, a leap in our steps, From simple
vlog
totrace
andwarn
adept. With every line coded, and every bug stopped, Our little paws dance, as logs now can't be dropped. Celebrate, dear friends, with a carrot on top!" 🥕🎉
- CodeRabbit
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
User facing changes: verbose flag (--verbose (-v)) is removed and replaced with (--log-level) named parameter with default value of INFO
Summary by CodeRabbit
New Features
Refactor
tracing
library for more robust and flexible log handling.debug
,error
,warn
, andtrace
.Documentation
Chores
tracing
library.