René's URL Explorer Experiment


Title: gh-92592: Allow logging filters to return a LogRecord. (GH-92591) by adriangb · Pull Request #92591 · python/cpython · GitHub

Open Graph Title: gh-92592: Allow logging filters to return a LogRecord. (GH-92591) by adriangb · Pull Request #92591 · python/cpython

X Title: gh-92592: Allow logging filters to return a LogRecord. (GH-92591) by adriangb · Pull Request #92591 · python/cpython

Description: Closes #92592 https://discuss.python.org/t/expand-logging-filter-api-to-allow-returning-a-logrecord

Open Graph Description: Closes #92592 https://discuss.python.org/t/expand-logging-filter-api-to-allow-returning-a-logrecord

X Description: Closes #92592 https://discuss.python.org/t/expand-logging-filter-api-to-allow-returning-a-logrecord

Opengraph URL: https://github.com/python/cpython/pull/92591

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4a5a8258-b1aa-e4ef-8f5d-2353eae4e20b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C14:2728FC:A480F0:DCEAB8:69697E7C
html-safe-nonce06dc682bdc920d54edc1c24ff6263321df4a9756e07be9521efc4bd7e53b9a71
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzE0OjI3MjhGQzpBNDgwRjA6RENFQUI4OjY5Njk3RTdDIiwidmlzaXRvcl9pZCI6IjM3NTc0OTE2MjAwMTM1MDYxNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5b9f7fc4110df13dcd10019c425b32b5114fb0c03e1036b3bd76355319aa061f
hovercard-subject-tagpull_request:931883161
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/92591/files
twitter:imagehttps://avatars.githubusercontent.com/u/1755071?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1755071?s=400&v=4
og:image:altCloses #92592 https://discuss.python.org/t/expand-logging-filter-api-to-allow-returning-a-logrecord
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release48f380098b30acbb700b04f1724481ca10d574fc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/92591/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F92591%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F92591%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/92591/files
Reloadhttps://github.com/python/cpython/pull/92591/files
Reloadhttps://github.com/python/cpython/pull/92591/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/92591/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/92591/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
vsajiphttps://github.com/vsajip
python:mainhttps://github.com/python/cpython/tree/main
adriangb:logging-filtershttps://github.com/adriangb/cpython/tree/logging-filters
Conversation 30 https://github.com/python/cpython/pull/92591
Commits 18 https://github.com/python/cpython/pull/92591/commits
Checks 0 https://github.com/python/cpython/pull/92591/checks
Files changed https://github.com/python/cpython/pull/92591/files
Please reload this pagehttps://github.com/python/cpython/pull/92591/files
gh-92592: Allow logging filters to return a LogRecord. (GH-92591) https://github.com/python/cpython/pull/92591/files#top
Show all changes 18 commits https://github.com/python/cpython/pull/92591/files
3aeeba6 allow logging filters to return a LogRecord adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/3aeeba6ed13eda4b895d8a531cf320768f5dc030
1e4d27f edit docstring adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/1e4d27f779a15a3a48f50c025ae88c6bbbcff94f
b526a35 remove unecessary __bool__ impl adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/b526a35ffe06124bed4f48044e4176506c29bade
f1ea183 edit docs adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/f1ea183f6f98871687084440ede535a628681be8
19561d3 Add docs and blurb adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/19561d39e8f6b28f17851a33d700887b6a1e35d2
14e704d Merge branch 'main' into logging-filters adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/14e704d6c5942e080c0942dda62324e1a6324153
4d34540 fix rst adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/4d34540e6a6a309929a59aac8d885599b04ca84a
a69e76a touch up wording adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/a69e76a474c59adc7c7b0c02d615df762a304fab
67453f6 add test for filters on loggers adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/67453f60c38b433f14c8e06b170b7fdc6b5b905b
b1e1084 push straggler change adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/b1e10848c981048383fee953efe679fa36035e04
f72c594 Merge branch 'main' into logging-filters adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/f72c5942c51feafdb4d2ba4f4427ea76e4a4dfac
225329f pr feedback adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/225329fcb4d192a07490177a078e753e2f32ac14
735d78a Merge branch 'logging-filters' of https://github.com/adriangb/cpython… adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/735d78ae818b59532761e62cd81be39b52b44c39
5e54c77 Merge branch 'main' into logging-filters adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/5e54c7736a5f5781611a3afd0d8c55b33edd1ea6
f52e404 fix whitespace adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/f52e4041e99d3603bdb7e6ff8dffe8b19841fd7e
46e2f7f fix docs as per pr feedback adriangb May 10, 2022 https://github.com/python/cpython/pull/92591/commits/46e2f7fbeeae2c124980c58efb453836eaa214d5
7a0f470 Update logging-cookbook.rst vsajip Jun 7, 2022 https://github.com/python/cpython/pull/92591/commits/7a0f4708e3a396b35d222314aa83286041cc0972
643551d Update logging.rst vsajip Jun 7, 2022 https://github.com/python/cpython/pull/92591/commits/643551d9c502c458caf3c99a0fae0cfc79be65cf
Clear filters https://github.com/python/cpython/pull/92591/files
Please reload this pagehttps://github.com/python/cpython/pull/92591/files
Please reload this pagehttps://github.com/python/cpython/pull/92591/files
logging-cookbook.rst https://github.com/python/cpython/pull/92591/files#diff-974e901041b3942a74846cc2224844a352bcc4add8f9581efe5707cba44ff168
logging.rst https://github.com/python/cpython/pull/92591/files#diff-5a71f910c8cd3cfddb8eb3d3e938b3ff7deaf2ba57f71d91e4b9dbdc58d890fb
__init__.py https://github.com/python/cpython/pull/92591/files#diff-1bf0ad6d121df3948853dafdd8e5406709fe0c3911b30e3cf2def41717455c98
test_logging.py https://github.com/python/cpython/pull/92591/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
2022-05-09-22-27-11.gh-issue-92591.V7RCk2.rst https://github.com/python/cpython/pull/92591/files#diff-bd8f4a57af43ac78b3fdbf4213bfe7fba3340e8a050cc9e10c4b8b28a763be00
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L513
Doc/howto/logging-cookbook.rsthttps://github.com/python/cpython/pull/92591/files#diff-974e901041b3942a74846cc2224844a352bcc4add8f9581efe5707cba44ff168
View file https://github.com/adriangb/cpython/blob/643551d9c502c458caf3c99a0fae0cfc79be65cf/Doc/howto/logging-cookbook.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/92591/{{ revealButtonHref }}
https://github.com/python/cpython/pull/92591/files#diff-974e901041b3942a74846cc2224844a352bcc4add8f9581efe5707cba44ff168
Please reload this pagehttps://github.com/python/cpython/pull/92591/files
https://github.com/python/cpython/pull/92591/files#diff-974e901041b3942a74846cc2224844a352bcc4add8f9581efe5707cba44ff168
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L513
Doc/library/logging.rsthttps://github.com/python/cpython/pull/92591/files#diff-5a71f910c8cd3cfddb8eb3d3e938b3ff7deaf2ba57f71d91e4b9dbdc58d890fb
View file https://github.com/adriangb/cpython/blob/643551d9c502c458caf3c99a0fae0cfc79be65cf/Doc/library/logging.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/92591/{{ revealButtonHref }}
https://github.com/python/cpython/pull/92591/files#diff-5a71f910c8cd3cfddb8eb3d3e938b3ff7deaf2ba57f71d91e4b9dbdc58d890fb
https://github.com/python/cpython/pull/92591/files#diff-5a71f910c8cd3cfddb8eb3d3e938b3ff7deaf2ba57f71d91e4b9dbdc58d890fb
https://github.com/python/cpython/pull/92591/files#diff-5a71f910c8cd3cfddb8eb3d3e938b3ff7deaf2ba57f71d91e4b9dbdc58d890fb
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L514
Lib/logging/__init__.pyhttps://github.com/python/cpython/pull/92591/files#diff-1bf0ad6d121df3948853dafdd8e5406709fe0c3911b30e3cf2def41717455c98
View file https://github.com/adriangb/cpython/blob/643551d9c502c458caf3c99a0fae0cfc79be65cf/Lib/logging/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/92591/{{ revealButtonHref }}
https://github.com/python/cpython/pull/92591/files#diff-1bf0ad6d121df3948853dafdd8e5406709fe0c3911b30e3cf2def41717455c98
https://github.com/python/cpython/pull/92591/files#diff-1bf0ad6d121df3948853dafdd8e5406709fe0c3911b30e3cf2def41717455c98
https://github.com/python/cpython/pull/92591/files#diff-1bf0ad6d121df3948853dafdd8e5406709fe0c3911b30e3cf2def41717455c98
https://github.com/python/cpython/pull/92591/files#diff-1bf0ad6d121df3948853dafdd8e5406709fe0c3911b30e3cf2def41717455c98
https://github.com/python/cpython/pull/92591/files#diff-1bf0ad6d121df3948853dafdd8e5406709fe0c3911b30e3cf2def41717455c98
https://github.com/python/cpython/pull/92591/files#diff-1bf0ad6d121df3948853dafdd8e5406709fe0c3911b30e3cf2def41717455c98
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L515
Lib/test/test_logging.pyhttps://github.com/python/cpython/pull/92591/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
View file https://github.com/adriangb/cpython/blob/643551d9c502c458caf3c99a0fae0cfc79be65cf/Lib/test/test_logging.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/92591/{{ revealButtonHref }}
https://github.com/python/cpython/pull/92591/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
https://github.com/python/cpython/pull/92591/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
Misc/NEWS.d/next/Library/2022-05-09-22-27-11.gh-issue-92591.V7RCk2.rsthttps://github.com/python/cpython/pull/92591/files#diff-bd8f4a57af43ac78b3fdbf4213bfe7fba3340e8a050cc9e10c4b8b28a763be00
View file https://github.com/adriangb/cpython/blob/643551d9c502c458caf3c99a0fae0cfc79be65cf/Misc/NEWS.d/next/Library/2022-05-09-22-27-11.gh-issue-92591.V7RCk2.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/92591/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.