mirror of
https://github.com/nushell/nushell.git
synced 2025-01-20 13:19:18 +01:00
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:
parent
58094987ff
commit
8d091f6f83
@ -66,3 +66,9 @@ cargo build
|
|||||||
```shell
|
```shell
|
||||||
cargo run --release --features=extra -- --log-level trace
|
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
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user