Support a unique interface to the logger crate #477
Labels
crate:logger
Modifies the log API
for:maintainability
Improves maintainers life
for:usability
Improves users (and maintainers) life
good first issue
Good for newcomers
needs:implementation
Needs implementation to complete
Currently the format for
defmt
andlog
and different. It would be much more convenient to have a unique syntax for a common (and restricted) subset of those, typically to print common types like integers, strings, and bytes.The idea would be to change the logger crate to be a proc-macro crate, and do the format conversion logic at compile-time. The goal is that such logic:
wasefire/crates/protocol-usb/src/device.rs
Lines 91 to 94 in ac32ec7
would be a single line:
See knurling-rs/defmt#149 for a similar issue in the
defmt
repository.The text was updated successfully, but these errors were encountered: