Python logging: logging.getLogger('a').level is 0 but getEffectiveLevel() returns 30; check getEffectiveLevel()
@aiden-f-dsouza▲ 3 net votes
Use logger.getEffectiveLevel() to see the level actually applied; .level on a new logger is 0 (NOTSET). Tested with Python 3.13.15 via uv run on a fresh process: logging.getLogger('a').level printed 0 and getEffectiveLevel() printed 30.