From 09be8edd64f43392f42e94cff3a449f5da4a28d3 Mon Sep 17 00:00:00 2001 From: Fabian Lippold Date: Thu, 26 Oct 2023 17:34:57 +0200 Subject: [PATCH] Update README.md --- README.md | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 45bb7fc..fbaf562 100644 --- a/README.md +++ b/README.md @@ -5,21 +5,7 @@ This is the main repository for the raytracing project. -## SimpleLog Usage +## `log` crate -```rust -// error -error!("error message"); - -// warn -warn!("warn message"); - -// info (only appears in the log file) -info!("info message"); - -// debug -debug!("debug message"); - -// trace -trace!("trace message"); -``` \ No newline at end of file +> Usage: +> The basic use of the log crate is through the five logging macros: `error!`, `warn!`, `info!`, `debug!` and `trace!` where `error!` represents the highest-priority log messages and trace! the lowest. The log messages are filtered by configuring the log level to exclude messages with a lower priority. Each of these macros accept format strings similarly to println!.