cli: add log file (#87)

This commit is contained in:
yse
2024-04-16 21:28:40 +02:00
committed by GitHub
parent e2ace48b48
commit 3efbdb97cb
3 changed files with 60 additions and 36 deletions

View File

@@ -15,11 +15,16 @@ cargo run
To specify a custom data directory, use
```bash
cargo run -- --data_dir temp-dir
cargo run -- --data-dir temp-dir
```
To set a custom log level, use
```bash
RUST_LOG=info cargo run
RUST_LOG=info|debug|warn cargo run
```
To specify a file to pipe logs to, use
```bash
RUST_LOG=info|debug|warn cargo run -- --log-file /tmp/log
```