This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients gwerbin, vinay.sajip
Date 2021-09-16.13:18:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631798313.2.0.834652949482.issue45027@roundup.psfhosted.org>
In-reply-to
Content
> This change serves the purpose of making it easier to configure non-root loggers.

My point was, they don't need to configure non-root loggers (in terms of adding handlers) because the root logger's handlers will normally be used for all loggers.

> However, if you configure the root logger in your application, you will see those [other libraries'] log messages.

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)

> I would frame this proposal as a third configuration option

As you can see, it's not needed for the purpose you described (avoiding messages from third-party loggers).

> it would be nice to adjust the type stubs for dictConfig() to use a TypedDict ... I'm happy to make a PR to Typeshed for it, though!

Sure, sounds like a good idea.

> I also think there should be a note about dictConfig() in the docs for basicConfig() ... Again, I'm happy to make a separate PR for that change.

By all means. You could also look at updating the cookbook content, if you feel that parts relating to the concerns expressed in this issue could be expanded on.
History
Date User Action Args
2021-09-16 13:18:33vinay.sajipsetrecipients: + vinay.sajip, gwerbin
2021-09-16 13:18:33vinay.sajipsetmessageid: <1631798313.2.0.834652949482.issue45027@roundup.psfhosted.org>
2021-09-16 13:18:33vinay.sajiplinkissue45027 messages
2021-09-16 13:18:32vinay.sajipcreate