[issue44440] logging does not work as documented (setLevel)

2021-06-29 Thread Vinay Sajip
Vinay Sajip added the comment: As Henk-Jaap points out, this is not a bug. You can't take a single sentence or even paragraph without considering the whole picture. In particular, this section https://docs.python.org/3/howto/logging.html#what-happens-if-no-configuration-is-provided

[issue44440] logging does not work as documented (setLevel)

2021-06-28 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: The sentence within the doc should not be considered in isolation. The "Logger" object is *not* ignoring the message (in accordance with the documentation and your expectation), but the "Handler" is, see

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Alexander Dietz
Alexander Dietz added the comment: I was not asking for a solution or a workaround. I simply wanted to submit this bug in either the code or the documentation. -- ___ Python tracker

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: Logging can be quite tricky. There are filters at multiple levels. In this case, you didn't set up the "global logging" and I am guessing, by default, it only shows WARNING and above. You can fix your problem by doing:

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Alexander Dietz
New submission from Alexander Dietz : 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