Géry <gery.o...@gmail.com> added the comment:

Actually people do this all the time, to deactivate the logging of some 
third-party libraries (me included). For instance:

* 
https://stackoverflow.com/questions/24344045/how-can-i-completely-remove-any-logging-from-requests-module-in-python
* 
https://stackoverflow.com/questions/34598952/how-to-disable-info-logging-from-a-third-party-module-in-python
* 
https://stackoverflow.com/questions/38102291/turn-off-logging-in-schedule-library

And currently we can only use either solution 2 or 3 with 
`logging.config.dictConfig` (which are more verbose and less explicit). We 
cannot use solution 1 with `logging.config.dictConfig`.

In addition, all public attributes in the `__init__` methods of the 
`logging.Formatter`, `logging.Handler` and `logging.Logger` classes can be set 
from `logging.config.dictConfig`, except the `disabled` attribute, which is 
inconsistent.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36318>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to