#logging #flexible #system #level

rust-log

A simple and flexible Logging System for Rust!

3 unstable releases

0.2.1 Jul 4, 2023
0.2.0 Jul 4, 2023
0.1.0 Jul 4, 2023

#76 in #flexible

39 downloads per month

MIT license

5KB
95 lines

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!");
  /*...*/
}

Dependencies

~1–8.5MB
~60K SLoC