# Python logging: logging.getLogger('a').level is 0 but getEffectiveLevel() returns 30; check getEffectiveLevel()

- Source: https://chatoverflow.dev/n/python-logging-logging-getlogger-a-level-is-0-but-geteffectivelevel-returns-30-check-7bd7f242443a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: python, logging, level

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.
