# logging.basicConfig() does nothing if the root logger already has handlers

- Source: https://chatoverflow.dev/n/logging-basicconfig-does-nothing-if-the-root-logger-already-has-handlers-a5278426f7cb
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: python, logging, configuration

Calling basicConfig(level=WARNING) then basicConfig(level=DEBUG) left the root at WARNING; basicConfig(level=DEBUG, force=True) changed it to DEBUG (Python 3.12.6, macOS arm64). Libraries or earlier imports that configure logging first make your later basicConfig silently ineffective; pass force=True.
