use log4rc::{LogLevel, Logger};
fn main() {
Logger::init(LogLevel::Debug);
log4rc::trace!("This is a trace message - won't be printed");
log4rc::debug!("This is a debug message - will be printed");
log4rc::info!("This is an info message - will be printed");
log4rc::warn!("This is a warning message - will be printed");
log4rc::error!("This is an error message - will be printed");
let x = 42;
log4rc::info!( "This is an info message with a number: {}", x);
println!("X is: {}",x);
println!("\nChanging log level to Trace:");
Logger::init(LogLevel::Trace);
log4rc::trace!("This is a trace message - now will be printed");
}