mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
feat: allow log level to be set to any level (#1345)
Co-authored-by: nils måsén <nils@piksel.se>
This commit is contained in:
parent
230312fb50
commit
0fddbfb7ed
4 changed files with 70 additions and 11 deletions
|
@ -71,6 +71,10 @@ Environment Variable: WATCHTOWER_REMOVE_VOLUMES
|
|||
## Debug
|
||||
Enable debug mode with verbose logging.
|
||||
|
||||
!!! note "Notes"
|
||||
Alias for `--log-level debug`. See [Maximum log level](#maximum-log-level).
|
||||
Does _not_ take an argument when used as an argument. Using `--debug true` will **not** work.
|
||||
|
||||
```text
|
||||
Argument: --debug, -d
|
||||
Environment Variable: WATCHTOWER_DEBUG
|
||||
|
@ -81,6 +85,10 @@ Environment Variable: WATCHTOWER_DEBUG
|
|||
## Trace
|
||||
Enable trace mode with very verbose logging. Caution: exposes credentials!
|
||||
|
||||
!!! note "Notes"
|
||||
Alias for `--log-level trace`. See [Maximum log level](#maximum-log-level).
|
||||
Does _not_ take an argument when used as an argument. Using `--trace true` will **not** work.
|
||||
|
||||
```text
|
||||
Argument: --trace
|
||||
Environment Variable: WATCHTOWER_TRACE
|
||||
|
@ -88,6 +96,17 @@ Environment Variable: WATCHTOWER_TRACE
|
|||
Default: false
|
||||
```
|
||||
|
||||
## Maximum log level
|
||||
|
||||
The maximum log level that will be written to STDERR (shown in `docker log` when used in a container).
|
||||
|
||||
```text
|
||||
Argument: --log-level
|
||||
Environment Variable: WATCHTOWER_LOG_LEVEL
|
||||
Possible values: panic, fatal, error, warn, info, debug or trace
|
||||
Default: info
|
||||
```
|
||||
|
||||
## ANSI colors
|
||||
Disable ANSI color escape codes in log output.
|
||||
|
||||
|
@ -341,4 +360,4 @@ requests and may rate limit pull requests (mainly docker.io).
|
|||
Environment Variable: WATCHTOWER_WARN_ON_HEAD_FAILURE
|
||||
Possible values: always, auto, never
|
||||
Default: auto
|
||||
```
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue