Skip to main content

Logging Open WebUI

Control what Open WebUI logs, where it goes, and how it's formatted, from quick debugging to production log pipelines.

Open WebUI has two logging surfaces: the browser console for frontend debugging and the Python backend for server-side events. Most configuration happens on the backend, where you can adjust verbosity with a single environment variable or switch to structured JSON output for log aggregators like Loki, Datadog, or CloudWatch.


Frontend Logging​

The frontend uses standard browser console calls. Open your browser's developer tools (F12 or Cmd+Option+I on macOS) and navigate to the Console tab. Production builds, the Docker image included, strip console.log, console.debug and console.error calls at build time unless the frontend was built with ENV=dev, so there you mainly see console.warn and console.info output plus the browser's own errors.

Browser-specific documentation:


Backend Logging​

The backend uses Python's built-in logging module. By default, logs are written to stdout at the INFO level, making them visible in your terminal or container logs.

Log Levels​

LevelValueWhen to use
CRITICAL50Catastrophic failures; the application may terminate
ERROR40Failed operations; the application continues but something broke
WARNING30Unexpected situations worth investigating: deprecations, resource pressure
INFO20Normal operation flow: startup, key events, request handling (default)
DEBUG10Detailed diagnostic output: function calls, variable values, execution steps

Setting the Global Log Level​

Set GLOBAL_LOG_LEVEL to change verbosity for the entire backend. This configures the root Python logger via logging.basicConfig(force=True), affecting all Open WebUI loggers and most third-party libraries.

Docker:

--env GLOBAL_LOG_LEVEL="DEBUG"

Docker Compose:

environment:
  - GLOBAL_LOG_LEVEL=DEBUG
tip

Use DEBUG for development and troubleshooting. For production, stick with INFO or WARNING to keep log volume manageable.

A value Python's logging module does not recognize (for example TRACE) falls back to INFO. Use one of the level names in the table above: the aliases WARN and FATAL pass that check, but Loguru rejects them and the backend fails to start.


What the Log Level Costs​

Raising the level saves work as well as log volume, because a message the level filters out is never built. Knowledge searches write the found file names and full results only at DEBUG, as do the External, Firecrawl, Kagi, Mojeek, SearchApi, SerpApi, Serply and Yandex web search engines. DEBUG is the most expensive level to run, whole chat request payloads included, so set it back once you have chased down whatever you turned it on for.


Turning Off Access Logs​

Each HTTP request writes an access line from uvicorn's uvicorn.access logger at INFO. At startup Open WebUI takes over every logger named in AUDIT_UVICORN_LOGGER_NAMES, uvicorn.access by default: it replaces the logger's handlers with its own and sets its level to GLOBAL_LOG_LEVEL. That is why UVICORN_ACCESS_LOG=false on its own leaves the access lines in place.

In the Docker image, which starts uvicorn from the command line, drop the access lines and keep GLOBAL_LOG_LEVEL=INFO by setting both:

UVICORN_ACCESS_LOG=false
AUDIT_UVICORN_LOGGER_NAMES=

The empty AUDIT_UVICORN_LOGGER_NAMES stops the takeover, so uvicorn's own switch applies. open-webui serve starts uvicorn from Python and does not read UVICORN_ACCESS_LOG, so there the access lines follow GLOBAL_LOG_LEVEL and only a level above INFO, such as WARNING, hides them. The audit log is written by Open WebUI itself, not by uvicorn.access, so it keeps working.


Structured JSON Logging​

For production environments using log aggregators, set LOG_FORMAT=json to switch all stdout output to single-line JSON objects.

Docker:

--env LOG_FORMAT="json"

Docker Compose:

environment:
  - LOG_FORMAT=json

JSON fields:

FieldDescription
tsISO 8601 timestamp
levelLog level (debug, info, warn, error, fatal)
msgLog message
callerSource location (module:function:line)
extraAdditional context data (if any)
errorError details (if applicable): an object with type, message and stacktrace, or a plain string on early startup lines
stacktraceStack trace, only on early startup lines logged with stack_info=True

Example output:

{"ts": "2026-02-22T20:14:53.386+00:00", "level": "info", "msg": "GLOBAL_LOG_LEVEL: INFO", "caller": "open_webui.env"}
{"ts": "2026-02-22T20:15:02.245+00:00", "level": "info", "msg": "Context impl SQLiteImpl.", "caller": "alembic.runtime.migration"}
note
  • Default behavior (no LOG_FORMAT set) is unchanged: plain-text output
  • The ASCII banner is suppressed when LOG_FORMAT=json to keep the log stream parseable
  • JSON logging covers both early startup logs (stdlib logging) and runtime logs (Loguru)
This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.