rust-log 0.2.1

A simple and flexible Logging System for Rust!
Documentation
  • Coverage
  • 4.55%
    1 out of 22 items documented1 out of 16 items with examples
  • Size
  • Source code size: 4.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 431.69 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • alexanderqmv

Rust-Log: A simple and flexible Logging System for Rust.

We present you a simple but flexible logging system with many different levels of logging.

[LogLevel] - structure containing logging levels

[Logger] - a structure containing functions for logging.

Example

fn main() {
  use rust_log::{Logger, LogLevel};
  let logger = Logger::new(LogLevel::Debug);

  // use macros (more comfortable)

  info!(logger, "This is an info message!");
  /*...*/
}