Module defmt_decoder::log[][src]

This is supported on unstable only.

This module provides interoperability utilities between defmt and the log crate.

If you are implementing a custom defmt decoding tool, this module can make it easier to integrate it with logs produced with the log crate.

Structs

DefmtRecord

A log record representing a defmt log frame.

Printer

Printer for DefmtRecords.

Functions

init_logger

Initializes a log sink that handles defmt frames.

is_defmt_frame

Determines whether metadata belongs to a log record produced by log_defmt.

log_defmt

Logs a defmt frame using the log facade.