Skip to main content

Logs

You can adjust the log level and output format using environment variables.

Variables

WUD_LOG_FORMAT
Optionalenumdefault: text

Log format

Allowed values:`text`, `json`
WUD_LOG_LEVEL
Optionalenumdefault: info

Log level

Allowed values:`error`, `info`, `debug`, `trace`

Examples

Set log level to debug

services:
whatsupdocker:
image: getwud/wud
...
environment:
- WUD_LOG_LEVEL=debug

Set JSON log format (for example, for Elasticsearch ingestion)

docker run -e WUD_LOG_FORMAT=json ... getwud/wud