Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabus1184 authored Oct 26, 2023
1 parent 2270a28 commit 09be8ed
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
```
> 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!.

0 comments on commit 09be8ed

Please sign in to comment.