feat(book): update CLI section (#6097)

This commit is contained in:
Alexey Shekhirin
2024-01-16 21:33:05 +00:00
committed by GitHub
parent 5a623a9c12
commit afa860757d
37 changed files with 1176 additions and 301 deletions

37
book/cli/reth/db.md vendored
View File

@ -2,7 +2,7 @@
Database debugging utilities
```text
```bash
$ reth db --help
Usage: reth db [OPTIONS] <COMMAND>
@ -68,6 +68,36 @@ Database:
- extra: Enables logging for extra debug-level messages
Logging:
--log.stdout.format <FORMAT>
The format to use for logs written to stdout
[default: terminal]
Possible values:
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
- terminal: Represents terminal-friendly formatting for logs
--log.stdout.filter <FILTER>
The filter to use for logs written to stdout
[default: info]
--log.file.format <FORMAT>
The format to use for logs written to the log file
[default: terminal]
Possible values:
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
- terminal: Represents terminal-friendly formatting for logs
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.file.directory <PATH>
The path to put log files in
@ -83,11 +113,6 @@ Logging:
[default: 5]
--log.file.filter <FILTER>
The filter to use for logs written to the log file
[default: debug]
--log.journald
Write logs to journald