Skip to content

Commit

Permalink
readme: Add RUST_LOG information.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Aug 21, 2024
1 parent 5dfa6a4 commit cbd72bb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,21 @@ Standard Rust tools are sufficient for testing:
cargo test
```

Additianally, logging level can be set to view debug information. There are
multiple options to this. In descending order for the number of logs:

```bash
RUST_LOG=trace cargo test # Prints every detail
RUST_LOG=debug cargo test
RUST_LOG=info cargo test
RUST_LOG=warn cargo test
RUST_LOG=error cargo test # Prints only errors
```

Please check
[log library's documentation](https://docs.rs/log/latest/log/enum.Level.html)
for more detail.

## Documentation

No external documentation is provided. Please read code comments or run:
Expand Down

0 comments on commit cbd72bb

Please sign in to comment.