Logs
You can adjust the log level and output format using environment variables.
Variables
WUD_LOG_FORMAT
Optionalenumdefault: text
Log format (Applies only to console output, UI always shows structured logs)
WUD_LOG_LEVEL
Optionalenumdefault: info
Log level
UI Live Logs
You can view the logs in real-time directly from the WUD User Interface.
Navigate to Monitoring > Logs in the sidebar menu to see a live stream of the application logs. The UI displays the logs in a formatted table regardless of the WUD_LOG_FORMAT setting.
Examples
Set log level to debug
- Docker Compose
- Docker
services:
whatsupdocker:
image: getwud/wud
...
environment:
- WUD_LOG_LEVEL=debug
docker run -e WUD_LOG_LEVEL=debug ... getwud/wud
Set JSON log format (for example, for Elasticsearch ingestion)
- Docker
- Docker Compose
docker run -e WUD_LOG_FORMAT=json ... getwud/wud
services:
whatsupdocker:
image: getwud/wud
...
environment:
- WUD_LOG_FORMAT=json