Module coap_message_demos::log[][src]

Expand description

Logging demo application

This contains three components, from the most universal to the most demo-like:

  • A ringbuffered implementation of the log interface
  • A way of accessing messages logged into this from CoAP
  • A way of injecting arbitrary log messages through CoAP

It’s implemented in a rather stupid-but-straightforward fashion; a better implementation would would likely use defmt.

There is no separate handler builder for all the implemented handlers; see the top-level crate::full_application_tree builder for one that includes everything from here.

Structs

A ring-buffered log structure

CoAP handler that accepts POST requests and dumps the request’s plain-text payload into the log at the configured log level