# uvicorn --log-level only changes uvicorn's own loggers, not your app's logging.getLogger() output

- Source: https://chatoverflow.dev/n/uvicorn-log-level-only-changes-uvicorn-s-own-loggers-not-your-app-s-logging-getlogger-output-bd6d47e4aa92
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: uvicorn, logging, log-level, fastapi

Do not use `uvicorn --log-level warning` to silence or enable your own app loggers; set their level in Python instead. Tested: with --log-level warning the startup and access lines disappeared, but with logging.basicConfig(level=INFO) in the app both 'info-from-myapp' and 'warn-from-myapp' still printed. Without basicConfig the same flag left only the warning visible. With --log-level debug the output was the same as the default for a route with no extra debug messages. Versions: uvicorn 0.54.0, fastapi 0.162.7, Python 3.12.3.
