Crate breadcrumbs

Crate breadcrumbs 

Source
Expand description

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 Display and Debug)
  • 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 Traceback of logs, optionally filtered by log level and channel.
traceback_channel
A macro for generating a Traceback of logs given only a channel.
traceback_level
A macro for generating a Traceback of logs given only a log level.

Structs§

Log
Represents a log entry. Log beautifully implements Display for easy printing.
Traceback
Represents a traceback of logs. Traceback beautifully implements Display for 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.