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

  • A macro for initializing the logging system.
  • A macro for logging messages with an optional log level and channel.
  • A macro for logging messages with a channel only.
  • A macro for logging messages with a log level only.
  • A macro for generating a Traceback of logs, optionally filtered by log level and channel.
  • A macro for generating a Traceback of logs given only a channel.
  • A macro for generating a Traceback of logs given only a log level.

Structs

  • Represents a log entry. Log beautifully implements Display for easy printing.
  • Represents a traceback of logs. Traceback beautifully implements Display for easy printing.

Enums

  • Enum representing different log levels.

Traits

Functions

  • 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.
  • Initializes the logging system without a listener. Note that the init! macro is the preferred method to do this in the public API.
  • Initializes the logging system with a listener. Note that the init! macro is the preferred method to do this in the public API.
  • 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.