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 maggyero, vinay.sajip
Date 2019-03-18.14:36:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552919768.82.0.992546384473.issue36318@roundup.psfhosted.org>
In-reply-to
Content
> Actually people do this all the time, to deactivate the logging of some third-party libraries (me included).

It would be better to set the level of those loggers to e.g. ERROR or CRITICAL rather than disabling them altogether - presumably if something bad happens in those packages, one would want to know!

> In addition, all public attributes ... can be set from `logging.config.dictConfig`, except the `disabled` attribute, which is inconsistent.

I don't especially want people to use `disabled` for this type of thing - the main reason for having it is that following an on-the-fly reconfiguration in a long-running process, some threads might still be active that contain references to now-unwanted loggers, and disabling makes those references inactive without the need to track them down. I would recommend using e.g. CRITICAL as a level for the use case you mention.
History
Date User Action Args
2019-03-18 14:36:08vinay.sajipsetrecipients: + vinay.sajip, maggyero
2019-03-18 14:36:08vinay.sajipsetmessageid: <1552919768.82.0.992546384473.issue36318@roundup.psfhosted.org>
2019-03-18 14:36:08vinay.sajiplinkissue36318 messages
2019-03-18 14:36:08vinay.sajipcreate