Skip to content

Commit 09be8ed

Browse files
authored
Update README.md
1 parent 2270a28 commit 09be8ed

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

README.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,7 @@
55

66
This is the main repository for the raytracing project.
77

8-
## SimpleLog Usage
8+
## `log` crate
99

10-
```rust
11-
// error
12-
error!("error message");
13-
14-
// warn
15-
warn!("warn message");
16-
17-
// info (only appears in the log file)
18-
info!("info message");
19-
20-
// debug
21-
debug!("debug message");
22-
23-
// trace
24-
trace!("trace message");
25-
```
10+
> Usage:
11+
> 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!.

0 commit comments

Comments
 (0)