[issue45027] Allow basicConfig to configure any logger, not just root

2021-09-17 Thread Greg Werbin
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)

[issue45027] Allow basicConfig to configure any logger, not just root

2021-09-14 Thread Greg Werbin
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()

[issue45027] Allow basicConfig to configure any logger, not just root

2021-08-27 Thread Greg Werbin
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

[issue45027] Allow basicConfig to configure any logger, not just root

2021-08-26 Thread Greg Werbin
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=