mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-02 12:17:45 +08:00
Add English doc for Save-log
This commit is contained in:
commit
e5da2c64df
37
site/src/site/sphinx/en/save-log.md
Normal file
37
site/src/site/sphinx/en/save-log.md
Normal file
@ -0,0 +1,37 @@
|
||||
Log command outputs
|
||||
===================
|
||||
|
||||
Log command outputs for later analysis, turned off by default.
|
||||
|
||||
To turn it on, using [options](options.md) as:
|
||||
|
||||
```sh
|
||||
$ options save-result true
|
||||
NAME BEFORE-VALUE AFTER-VALUE
|
||||
----------------------------------------
|
||||
save-result false true
|
||||
Affect(row-cnt:1) cost in 3 ms.
|
||||
```
|
||||
|
||||
F.Y.I
|
||||
|
||||
1. logging file lies in: `{user.home}/logs/arthas-cache/result.log`;
|
||||
2. remember to clean up the file to save disk space.
|
||||
|
||||
### Asynchronous log
|
||||
|
||||
:notes: :notes:
|
||||
With the latest Arthas, you can log the outputs asynchronously in the background:
|
||||
|
||||
```sh
|
||||
$ trace Test t >> &
|
||||
job id : 2
|
||||
cache location : /Users/zhuyong/logs/arthas-cache/28198/2
|
||||
```
|
||||
|
||||
F.Y.I
|
||||
|
||||
1. `quit/exit` or `Ctrl+C` will not affect the asynchronous jobs :sparkles:;
|
||||
2. default timeout for the background job is 1 day (you can set it via [options](options.md));
|
||||
3. outputs will be save to the `cache location` now (no matter what `save-result` is - not `~/logs/arthas-cache/result.log` any more).
|
||||
|
Loading…
Reference in New Issue
Block a user