Title: Allow using QueueHandler and QueueListener in logging.dictConfig · Issue #93162 · python/cpython · GitHub
Open Graph Title: Allow using QueueHandler and QueueListener in logging.dictConfig · Issue #93162 · python/cpython
X Title: Allow using QueueHandler and QueueListener in logging.dictConfig · Issue #93162 · python/cpython
Description: Feature or enhancement Allow using instances in the dict passed to dictConfig Pitch Currently the logging configuration does not allow passing already created instances of e.g. logging.Handler. However this would be very useful for an ap...
Open Graph Description: Feature or enhancement Allow using instances in the dict passed to dictConfig Pitch Currently the logging configuration does not allow passing already created instances of e.g. logging.Handler. How...
X Description: Feature or enhancement Allow using instances in the dict passed to dictConfig Pitch Currently the logging configuration does not allow passing already created instances of e.g. logging.Handler. How...
Opengraph URL: https://github.com/python/cpython/issues/93162
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow using QueueHandler and QueueListener in logging.dictConfig","articleBody":"**Feature or enhancement**\r\n\r\nAllow using instances in the dict passed to ``dictConfig``\r\n\r\n**Pitch**\r\n\r\nCurrently the logging configuration does not allow passing already created instances of e.g. ``logging.Handler``.\r\nHowever this would be very useful for an application that uses the dict to configure the logger but wants to use a ``QueueHandler`` that implements custom logic. \r\nSince the ``logging.Handlers`` and ``logging.Filters`` need to be attached to the ``QueueListener`` for logging to files it's almost impossible to set it up properly.\r\nIf it would be possible to pass an instance the setup could be simplified a lot.\r\n\r\n**Previous discussion**\r\n\r\n\u003c!--\r\n New features to Python should first be discussed elsewhere before creating issues on GitHub,\r\n for example in the \"ideas\" category (https://discuss.python.org/c/ideas/6) of discuss.python.org,\r\n or the python-ideas mailing list (https://mail.python.org/mailman3/lists/python-ideas.python.org/).\r\n Use this space to post links to the places where you have already discussed this feature proposal:\r\n--\u003e\r\n\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n--\u003e\r\n","author":{"url":"https://github.com/spacemanspiff2007","@type":"Person","name":"spacemanspiff2007"},"datePublished":"2022-05-24T09:18:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/93162/cpython/issues/93162"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5499b125-ccd2-01c9-fe8d-9400b619f82e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBE2:79AAA:887A5:B304C:6969C705 |
| html-safe-nonce | fb6dda3abeb629bffa95c436dcb0020d16a157b9c3af1c44f6ce47ced0218052 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkUyOjc5QUFBOjg4N0E1OkIzMDRDOjY5NjlDNzA1IiwidmlzaXRvcl9pZCI6IjUyNDgzMDA5NTkxNjU2OTU3NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4482fb773dbc88c916f1f8d939ed5af8ba7003aa7bae9e82b6bf4798a14f5e87 |
| hovercard-subject-tag | issue:1246251022 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/93162/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d7b11258cf8e0484ddde6002aee323cb8992274a5eaf8e0771fc8f84f20e430/python/cpython/issues/93162 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d7b11258cf8e0484ddde6002aee323cb8992274a5eaf8e0771fc8f84f20e430/python/cpython/issues/93162 |
| og:image:alt | Feature or enhancement Allow using instances in the dict passed to dictConfig Pitch Currently the logging configuration does not allow passing already created instances of e.g. logging.Handler. How... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spacemanspiff2007 |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width