Skip to content

Commit

Permalink
doc(readme): Add options for verbose and debug log levels
Browse files Browse the repository at this point in the history
This commit adds options for using verbose and debug log levels in the server and client. The `README.md` file has been updated to include instructions on how to use these log levels. Now, users can run the server with verbose logs using `cargo run -p server -- -v`, or with debug logs using `cargo run -p server -- -d`. Similarly, they can run the client with verbose logs using `cargo run -p client -- -v`, or with debug logs using `cargo run -p client -- -d`.
  • Loading branch information
jabibamman committed Jan 6, 2024
1 parent 4ba04c0 commit b499ee1
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,32 +105,22 @@ To run the server with CLI, use the following command:
cargo run -p server -- -h
```

## Using debug log level

To use the debug log level, use the following command:
## Using verbose log level

### Unix/Linux/MacOS
To use the verbose log level, use the following command:

```bash
RUST_LOG=debug cargo run -p client
RUST_LOG=debug cargo run -p server
cargo run -p client -- -v
cargo run -p server -- -v
```

### Windows

#### CMD

```bash
set RUST_LOG=debug
cargo run -p client
cargo run -p server
```
## Using debug log level

#### PowerShell
To use the debug log level, use the following command:

```bash
$env:RUST_LOG="debug"; cargo run -p client
$env:RUST_LOG="debug"; cargo run -p server
cargo run -p client -- -d
cargo run -p server -- -d
```

## Documentation
Expand Down

0 comments on commit b499ee1

Please sign in to comment.