Greg Werbin added the comment:
> Users certainly don't need an API change to prevent that, should they wish
> to. The following simple call will suffice (using 'gnupg' just as an example):
>
> logging.getLogger('gnupg').setLevel(logging.CRITICAL + 1)
Greg Werbin added the comment:
Hi, thanks for the comment.
> First of all, library developers should not be configuring loggers at all,
> other than adding a NullHandler to their top-level logger.
This is true, and I agree. I am not expecting people to start using
basicConfig()
Change by Greg Werbin :
--
keywords: +patch
pull_requests: +26452
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28010
___
Python tracker
<https://bugs.python.org/issu
New submission from Greg Werbin :
Hello all!
I am proposing to add a "logger=" kwarg to logging.basicConfig(), which would
cause the configuration to be applied to the specified logger. The value of
this parameter could be a string or a logging.Logger object. Omitting logger=