-
Notifications
You must be signed in to change notification settings - Fork 3
log: mw_log implementation
#32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log: mw_log implementation
#32
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
550ccf3 to
a65f5cb
Compare
ad3ef67 to
39a84b6
Compare
7e98e5d to
b6c4efb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements the mw_log logging facade as a replacement for the log crate, providing a custom logging interface with formatting capabilities.
Key changes:
- New
mw_loglibrary with logging macros, levels, and traits - Updated module references from
mw_log_fmttomw_log::fmtthroughout the codebase - Enhanced
mw_log_fmtwith additional type implementations and test coverage
Reviewed changes
Copilot reviewed 25 out of 26 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/log/mw_log/lib.rs | Core logging implementation with Level, LevelFilter, Log trait, and Record/Metadata types |
| src/log/mw_log/macros.rs | Logging macros (log!, fatal!, error!, warn!, info!, debug!, trace!, log_enabled!) |
| src/log/mw_log/__private_api.rs | Internal API for macro support including log, enabled, context, and location helpers |
| src/log/mw_log/tests/*.rs | Unit and integration tests for logging functionality |
| src/log/mw_log_fmt_macro/*.rs | Updated module paths from mw_log_fmt:: to mw_log::fmt:: |
| src/log/mw_log_fmt/fmt_impl.rs | Added ScoreDebug implementations for (), str, Option, HashMap, error types |
| src/log/mw_log_fmt/test_utils.rs | Updated test helper to set DisplayHint::Debug for consistent formatting |
| examples/log_example/* | Example application demonstrating logger implementation |
| Build files (BUILD, Cargo.toml) | Updated dependencies and visibility settings |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b6c4efb to
486f04c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 25 out of 26 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
486f04c to
46ccd6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 25 out of 26 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pawelrutkaq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did not looke into macros yet
27790b3 to
714137f
Compare
714137f to
c38cec7
Compare
c38cec7 to
8cad2a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 26 out of 27 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8cad2a7 to
e03b248
Compare
e03b248 to
bc26f4e
Compare
bc26f4e to
27d9b22
Compare
27d9b22 to
c6ba882
Compare
src/log/mw_log/lib.rs
Outdated
| } | ||
| } | ||
|
|
||
| impl<T: ?Sized + Log> Log for std::sync::Arc<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed ?
src/log/mw_log/lib.rs
Outdated
| } | ||
| } | ||
|
|
||
| impl<T: ?Sized + Log> Log for std::boxed::Box<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alloc::boxed::Box ? and other places?
- Replacement for `log` crate. - Additional common types implementation. - Selectable safety level features (`asil_b`, `qm`). - Unit tests.
c6ba882 to
abcfec9
Compare
logcrate.Notes for Reviewer
Pre-Review Checklist for the PR Author
Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References
Closes #30