[New-bugs-announce] [issue44440] logging does not work as documented (setLevel)

Alexander Dietz report at bugs.python.org
Thu Jun 17 06:10:19 EDT 2021


New submission from Alexander Dietz <alexander.dietz at epfl.ch>:

Using python 3.8.10 and the documentation https://docs.python.org/3.8/library/logging.html it seems that either the documentation is incorrect/unclear, or that the logging module does not work as described. 

Reading on the Logger Object and the setLevel method I created the attached python code, which does not work as expected. As I set the level to "DEBUG", and the documentation clearly says " Logging messages which are less severe than level will be ignored". But having set the level to DEBUG, even the more "severe" info message is ignored. That is clearly contradicting the documentation!

----------
assignee: docs at python
components: Documentation
files: problem.py
messages: 395984
nosy: alex4200, docs at python
priority: normal
severity: normal
status: open
title: logging does not work as documented (setLevel)
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file50114/problem.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44440>
_______________________________________


More information about the New-bugs-announce mailing list