mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-12 23:01:30 +00:00
7 lines
223 B
Markdown
7 lines
223 B
Markdown
stdinwriter reads from stdin and writes to the specified file, in a way compatible for logrotate to move around.
|
|
(see tendermint/common/os#AutoFile)
|
|
|
|
```bash
|
|
some_command arg1 arg2 2>&1 | stdinwriter -o path_to_log.log
|
|
```
|