[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

Vinay Sajip report at bugs.python.org
Mon Mar 18 14:21:48 EDT 2019


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

> If the `disabled` attribute should not be part of the public API it should have been name `_disabled`.

A bit late for that now, and AFAIK it hasn't caused people insuperable problems heretofore - the code has been like this pretty much since the logging package was added to Python.


> So it should be doable from `logging.config.dictConfig` too in my opinion.

Let's just agree to disagree on this for now. It's certainly not a common use case, there are other ways to achieve the desired result in those uncommon cases, and the argument seems to come back to "consistency". I'd rather leave this as it is.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36318>
_______________________________________


More information about the Python-bugs-list mailing list