knurling-rs / defmt

Efficient, deferred formatting for logging on embedded systems
https://defmt.ferrous-systems.com/
Apache License 2.0
812 stars 74 forks source link

Add `pub struct Formatter` to `defmt_decoder::log`. #781

Closed Urhengulas closed 12 months ago

Urhengulas commented 1 year ago

The purpose of Formatter is to format defmt frames according to the log format. Specifically I will be using this to add custom log format support to probe-rs.

@andresovela Would you have time for a review?

Urhengulas commented 12 months ago

I am a bit short on time and will therefore merge this PR as is. I linked the discussion from the code and will refactor it at a later point. Otherwise I am open for a refactoring PR.