Skip to content

Generate logging statements when encoding and decoding #22

@YuhanLiin

Description

@YuhanLiin

Currently if the user runs into a decoding error, there's no indication of where exactly in the process things went wrong. We can fix this by having the decoding logic emit logs at various levels, including error logs. For consistency, this should also be done when encoding. This feature should be enabled by a setting on the generator to ensure back-compat. At minimum, it should support the log and defmt crates, though it'd be best if we also allow users to supply their own logging calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions