You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
disable_existing_loggers does not apply to the root logger #79903
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-01-23.07:24:42.282>created_at=<Date2019-01-11.19:32:29.879>labels= ['3.8', 'type-bug', '3.7', 'docs']
title='disable_existing_loggers does not apply to the root logger'updated_at=<Date2019-01-23.07:24:42.281>user='https://github.com/maggyero'
In the logging package, the parameter disable_existing_loggers used in logging.config.dictConfig and logging.config.fileConfig does not apply to the root logger. More precisely, its disabled attribute remains unchanged (while it is set to True for non-root loggers). So it is either a bug or the documentation should be updated.
Illustration:
importlogging.config
assert logging.getLogger().disabled is False
assert logging.getLogger("foo").disabled is False
logging.config.dictConfig({"version": 1})
assert logging.getLogger().disabled is False
assert logging.getLogger("foo").disabled is True
New changeset f0c7436 by Vinay Sajip (Géry Ogam) in branch 'master': bpo-35722: Updated the documentation for the 'disable_existing_loggers' parameter (GH-11525) f0c7436
New changeset 552478b by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-35722: Updated the documentation for the 'disable_existing_loggers' parameter (GH-11525) (GH-11655) 552478b
Activity
maggyero commentedon Jan 11, 2019
In the logging package, the parameter disable_existing_loggers used in logging.config.dictConfig and logging.config.fileConfig does not apply to the root logger. More precisely, its disabled attribute remains unchanged (while it is set to True for non-root loggers). So it is either a bug or the documentation should be updated.
Illustration:
assert logging.getLogger().disabled is False
assert logging.getLogger("foo").disabled is False
assert logging.getLogger().disabled is False
assert logging.getLogger("foo").disabled is True
vsajip commentedon Jan 23, 2019
New changeset f0c7436 by Vinay Sajip (Géry Ogam) in branch 'master':
bpo-35722: Updated the documentation for the 'disable_existing_loggers' parameter (GH-11525)
f0c7436
vsajip commentedon Jan 23, 2019
New changeset 552478b by Vinay Sajip (Miss Islington (bot)) in branch '3.7':
bpo-35722: Updated the documentation for the 'disable_existing_loggers' parameter (GH-11525) (GH-11655)
552478b