Crate rust_log

source ·
Expand description

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

Macros

Structs

Enums