Title: bpo-35722: Specify in the docs that disable_existing_loggers does not affect the root logger by geryogam · Pull Request #11525 · python/cpython · GitHub
Open Graph Title: bpo-35722: Specify in the docs that disable_existing_loggers does not affect the root logger by geryogam · Pull Request #11525 · python/cpython
X Title: bpo-35722: Specify in the docs that disable_existing_loggers does not affect the root logger by geryogam · Pull Request #11525 · python/cpython
Description: In the package logging, the parameter disable_existing_loggers used in the functions logging.config.dictConfig and logging.config.fileConfig does not affect the root logger. More precisely, calling those functions with the parameter disable_existing_loggers set to True or False leaves the attribute disabled of the root logger unchanged (while it sets it to True for non-root loggers). So it is either a bug or the documentation should be updated. This PR updates the documentation. Illustration: import logging.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 https://bugs.python.org/issue35722
Open Graph Description: In the package logging, the parameter disable_existing_loggers used in the functions logging.config.dictConfig and logging.config.fileConfig does not affect the root logger. More precisely, calling...
X Description: In the package logging, the parameter disable_existing_loggers used in the functions logging.config.dictConfig and logging.config.fileConfig does not affect the root logger. More precisely, calling...
Opengraph URL: https://github.com/python/cpython/pull/11525
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c8b4c90d-8354-9043-1f00-71681ef72426 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D176:2CF936:11861DA:17216AB:6A5C48A1 |
| html-safe-nonce | a468511115a6fce1c46f266c45d58867e5d9d98007995c7b6f99c08fafab2e4b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTc2OjJDRjkzNjoxMTg2MURBOjE3MjE2QUI6NkE1QzQ4QTEiLCJ2aXNpdG9yX2lkIjoiMjIyMTg5NzkwOTU1NzU0NTEyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ad0fbe4148036d47eb70f0786e4da21a01c8d4ea3f8754e8d7ecffd699d45042 |
| hovercard-subject-tag | pull_request:244102556 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/11525/files |
| twitter:image | https://avatars.githubusercontent.com/u/33548838?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/33548838?s=400&v=4 |
| og:image:alt | In the package logging, the parameter disable_existing_loggers used in the functions logging.config.dictConfig and logging.config.fileConfig does not affect the root logger. More precisely, calling... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width