Crate log
Expand description
Provides debug logging facilities.
§Syntax of formatting strings
The behavior of the provided logging macros depends on which Cargo feature is enabled:
- When the
defmtfeature is enabled,defmtis used for logging. - When the
logfeature is enabled,logis used for logging. - Otherwise, the logging macros are no-ops.
This means that the syntax of the formatting strings differs depending on the enabled Cargo feature; please refer to the documentation of those crates for details on the supported syntax.
Modules§
- defmt
defmt - Selected [
defmt] items.
Macros§
- debug
- Logs a message at the debug level.
- error
- Logs a message at the error level.
- info
- Logs a message at the info level.
- println
- Prints to the debug output, with a newline.
- trace
- Logs a message at the trace level.
- warn
- Logs a message at the warn level.
Structs§
- Cbor
- A newtype around byte slices used for all of Ariel OS’s logging facades that prefers interpreting the data as CBOR.
- Debug2
Format - An “adapter” type to feed
Debugvalues into defmt macros, which expectdefmt::Formatvalues. - Display2
Format - An “adapter” type to feed
Displayvalues into defmt macros, which expectdefmt::Formatvalues. - Hex
- A newtype around byte slices used for all of Ariel OS’s logging facades that turns the bytes into some hex output.