You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/site/docs/en/doc/save-log.md

28 lines
788 B
Markdown

# Log command outputs
7 years ago
[`Log command outputs` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en&id=save-log)
::: tip
Log command outputs for later analysis
:::
7 years ago
- By default, this behavior is turned off. To enable it, execute the command below:
7 years ago
```bash
$ options save-result true
NAME BEFORE-VALUE AFTER-VALUE
----------------------------------------
save-result false true
Affect(row-cnt:1) cost in 3 ms.
```
7 years ago
If the message above is output on the console, then this behavior is enabled successfully.
7 years ago
- Log file path
The command execution result will be save in `{user.home}/logs/arthas-cache/result.log`. Pls. clean it up regularly to save disk space.
7 years ago
## Use asynchronous job to log
7 years ago
Reference: [async](async.md)