Expand description
§breadcrumbs
Breadcrumbs is a beautiful, tiny traceback and logging library for Rust that offers seamless integration with #![no_std], #[no_panic] multi-threading and concurrency.
§Features
- Beautifully-formatted traceback of logs (supporting
DisplayandDebug) - Dynamic log levels
- Dynamic log channels
- Seamless integration with
#![no_std]and#[no_panic] - Multi-threading and concurrent logging with no special syntax
- Easy-to-use macros
- Support for listeners to be notified of new logs
Macros§
- init
- A macro for initializing the logging system.
- log
- A macro for logging messages with an optional log level and channel.
- log_
channel - A macro for logging messages with a channel only.
- log_
level - A macro for logging messages with a log level only.
- traceback
- A macro for generating a
Tracebackof logs, optionally filtered by log level and channel. - traceback_
channel - A macro for generating a
Tracebackof logs given only a channel. - traceback_
level - A macro for generating a
Tracebackof logs given only a log level.
Structs§
- Log
- Represents a log entry.
Logbeautifully implementsDisplayfor easy printing. - Traceback
- Represents a traceback of logs.
Tracebackbeautifully implementsDisplayfor easy printing.
Enums§
- LogLevel
- Enum representing different log levels.
Traits§
- LogListener
- A trait for handling log entries.
Functions§
- get_
logs_ traceback - Retrieves a traceback of logs based on the minimum log level and channel filter.
Note that the
traceback!macro is the preferred method to do this in the public API. - init
- Initializes the logging system without a listener.
Note that the
init!macro is the preferred method to do this in the public API. - init_
with_ listener - Initializes the logging system with a listener.
Note that the
init!macro is the preferred method to do this in the public API. - log
- Logs a message with an optional log level and channel.
Note that the
log!macro is the preferred method to do this in the public API.