feat: allow logging output to use JSON formatter (#1705)

Co-authored-by: nils måsén <nils@piksel.se>
This commit is contained in:
Arsène Fougerouse 2023-09-16 18:23:26 +03:00 committed by GitHub
parent 897b1714d0
commit 79ebad0e19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 114 additions and 18 deletions

View file

@ -134,6 +134,17 @@ Environment Variable: WATCHTOWER_LOG_LEVEL
Default: info
```
## Logging format
Sets what logging format to use for console output.
```text
Argument: --log-format, -l
Environment Variable: WATCHTOWER_LOG_FORMAT
Possible values: Auto, LogFmt, Pretty or JSON
Default: Auto
```
## ANSI colors
Disable ANSI color escape codes in log output.
@ -407,6 +418,7 @@ Environment Variable: WATCHTOWER_WARN_ON_HEAD_FAILURE
Possible values: always, auto, never
Default: auto
```
## Programatic Output (porcelain)
Writes the session results to STDOUT using a stable, machine-readable format (indicated by the argument VERSION).