use fast_rich::log::RichLogger;
use log::{debug, error, info, trace, warn};
fn main() {
RichLogger::init().expect("Failed to initialize logger");
info!("Starting logging example...");
trace!("This is a trace message - usually seemingly invisible by default default level?");
debug!("This is a debug message - useful for developers");
info!("This is an info message - standard operational info");
warn!("This is a warning - something might vary slightly wrong");
error!("This is an error - something went wrong!");
info!("User logged in: user_id={}", 12345);
complex_calculation();
info!("Logging example complete.");
}
fn complex_calculation() {
debug!("Starting complex calculation...");
warn!("Calculation taking longer than expected");
error!("Calculation failed: division by zero");
}