Add custom log target to debugging tips (#6293)

Signed-off-by: nibon7 <nibon7@163.com>

Signed-off-by: nibon7 <nibon7@163.com>
This commit is contained in:
nibon7 2022-08-11 14:10:27 +08:00 committed by GitHub
parent 58094987ff
commit 8d091f6f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,3 +66,9 @@ cargo build
```shell
cargo run --release --features=extra -- --log-level trace
```
- To redirect trace logs to a file, enable the `--log-target file` switch.
```shell
cargo run --release --features=extra -- --log-level trace --log-target file
[($nu.temp-path) nu-($nu.pid).log] | path join | open
```