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 (Applies only to console output, UI always shows structured logs)

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

Log level

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

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

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