Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
75k
Code
Issues
5k+
Pull requests
2.6k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Lib
logging
__init__.py
on
3.13
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 2, 2026
[3.13] gh-79366: Fix a race condition when removing a logging handler (GH-154528) (GH-155078)
Show description for 3d70247
4 people
authored
3d70247
View commit details
Copy full SHA for 3d70247
View code at this point
Browse repository at this point
Commits on Oct 30, 2025
[3.13] gh-138162: Fix logging.LoggerAdapter with merge_extra=True and without the extra argument (GH-140511) (GH-140785)
Show description for 32c3dcc
miss-islington
and
serhiy-storchaka
authored
32c3dcc
View commit details
Copy full SHA for 32c3dcc
View code at this point
Browse repository at this point
Commits on Jun 25, 2025
[3.13] gh-91555: Revert disabling of logger while handling log record. (GH-135858) (GH-135911)
Show description for c148a68
miss-islington
and
vsajip
authored
c148a68
View commit details
Copy full SHA for c148a68
View code at this point
Browse repository at this point
Commits on May 21, 2025
[3.13] gh-134360 Add processName attribute to `logging.Formatter` docstring (GH-134371) (GH-134404)
Show description for 7ada439
miss-islington
and
SofieTorch
authored
7ada439
View commit details
Copy full SHA for 7ada439
View code at this point
Browse repository at this point
Commits on May 12, 2025
[3.13] gh-91555: disable logger while handling log record (GH-131812) (GH-133898)
Show description for 8e923f3
miss-islington
and
duaneg
authored
8e923f3
View commit details
Copy full SHA for 8e923f3
View code at this point
Browse repository at this point
Commits on Aug 9, 2024
[3.13] gh-105376: Restore deprecated logging warn() method (GH-122775) (#122856)
Show description for bcce4cc
4 people
authored
bcce4cc
View commit details
Copy full SHA for bcce4cc
View code at this point
Browse repository at this point
Commits on Jun 24, 2024
[3.13] gh-120683: Fix an error in logging.LogRecord timestamp (GH-120709) (GH-120933)
Show description for 544a472
miss-islington
and
serhiy-storchaka
authored
544a472
View commit details
Copy full SHA for 544a472
View code at this point
Browse repository at this point
Commits on Apr 16, 2024
gh-102402: Fix floating point math issue by using `time.time_ns()` in `logging.LogRecord` (GH-102412)
dougthor42
authored
1316692
View commit details
Copy full SHA for 1316692
View code at this point
Browse repository at this point
Commits on Mar 22, 2024
[docs] Fix typo in docstring and add example to logging cookbook. (GH-117157)
vsajip
authored
00baaa2
View commit details
Copy full SHA for 00baaa2
View code at this point
Browse repository at this point
Commits on Feb 12, 2024
gh-115233: Fix an example in the Logging Cookbook (GH-115325)
Show description for 9182201
serhiy-storchaka
authored
9182201
View commit details
Copy full SHA for 9182201
View code at this point
Browse repository at this point
Commits on Jan 26, 2024
gh-114494: Change logging docstring to bool for exec_info (GH=114558)
tristanpank
authored
07236f5
View commit details
Copy full SHA for 07236f5
View code at this point
Browse repository at this point
Commits on Sep 27, 2023
gh-109461: Update logging module lock to use context manager (#109462)
Show description for 74723e1
dcollison
and
vstinner
authored
74723e1
View commit details
Copy full SHA for 74723e1
View code at this point
Browse repository at this point
Commits on Aug 15, 2023
gh-76913: Add "merge extras" feature to LoggerAdapter (GH-107292)
romuald
authored
a482e5b
View commit details
Copy full SHA for a482e5b
View code at this point
Browse repository at this point
Commits on Aug 7, 2023
gh-107710: Speed up `logging.getHandlerNames` function (#107711)
sobolevn
authored
8fcee6b
View commit details
Copy full SHA for 8fcee6b
View code at this point
Browse repository at this point
Commits on Jul 14, 2023
gh-102799: replace internal sys.exc_info() call by sys.exception() (#106746)
iritkatriel
authored
fb32f35
View commit details
Copy full SHA for fb32f35
View code at this point
Browse repository at this point
Commits on Jul 9, 2023
gh-105376: Remove logging.warn() and LoggerAdapter.warn() (#106553)
vstinner
authored
dcc028d
View commit details
Copy full SHA for dcc028d
View code at this point
Browse repository at this point
Commits on Jul 6, 2023
gh-106238: Handle KeyboardInterrupt during logging._acquireLock() (GH-106239)
Show description for 99b00ef
arieleiz
and
arieleizenberg
authored
99b00ef
View commit details
Copy full SHA for 99b00ef
View code at this point
Browse repository at this point
Commits on Jun 6, 2023
gh-105376: Remove logging.Logger.warn() method (#105377)
vstinner
authored
6c54e5d
View commit details
Copy full SHA for 6c54e5d
View code at this point
Browse repository at this point
Commits on Mar 31, 2023
gh-102799: use exception instance instead of sys.exc_info() (#102885)
iritkatriel
authored
44bd3fe
View commit details
Copy full SHA for 44bd3fe
View code at this point
Browse repository at this point
Commits on Nov 28, 2022
gh-99811: Use correct variable to search for time in format string (GH-99812)
Show description for 1d1bb95
cemysce
authored
1d1bb95
View commit details
Copy full SHA for 1d1bb95
View code at this point
Browse repository at this point
Commits on Aug 31, 2022
gh-89258: Add a getChildren() method to logging.Logger. (GH-96444)
Show description for 29f1b0b
vsajip
and
merwok
authored
29f1b0b
View commit details
Copy full SHA for 29f1b0b
View code at this point
Browse repository at this point
Commits on Aug 27, 2022
gh-89047: Fix msecs computation so you never end up with 1000 msecs. (GH-96340)
vsajip
authored
6fbd889
View commit details
Copy full SHA for 6fbd889
View code at this point
Browse repository at this point
Commits on Aug 10, 2022
gh-95804: Respect MemoryHandler.flushOnClose in logging shutdown. (GH-95857)
rascalking
authored
37c0f9c
View commit details
Copy full SHA for 37c0f9c
View code at this point
Browse repository at this point
Commits on Jul 30, 2022
gh-95454: Replace truthy/falsy with true/false (GH-95456)
PurityLake
authored
cd26595
View commit details
Copy full SHA for cd26595
View code at this point
Browse repository at this point
Commits on Jun 7, 2022
gh-92592: Allow logging filters to return a LogRecord. (GH-92591)
adriangb
authored
296081a
View commit details
Copy full SHA for 296081a
View code at this point
Browse repository at this point
gh-93162: Add ability to configure QueueHandler/QueueListener together (GH-93269)
Show description for 1b74803
vsajip
authored
1b74803
View commit details
Copy full SHA for 1b74803
View code at this point
Browse repository at this point
Commits on Jun 4, 2022
[doc] Correct a grammatical error in a docstring. (GH-93441)
colin99d
authored
3d647e7
View commit details
Copy full SHA for 3d647e7
View code at this point
Browse repository at this point
Commits on May 26, 2022
gh-91513: Add 'asyncio' taskName to logging LogRecord attributes. (GH-93193)
jackh-ncl
authored
cc37706
View commit details
Copy full SHA for cc37706
View code at this point
Browse repository at this point
Commits on May 2, 2022
Delete outdated comment in logging module (#31117)
Show description for 5e9323a
thomie
and
JelleZijlstra
authored
5e9323a
View commit details
Copy full SHA for 5e9323a
View code at this point
Browse repository at this point
gh-92128: Add `__class_getitem__` to `logging.LoggerAdapter` and `logging.StreamHandler` (#92129)
Show description for ab616d3
AlexWaygood
authored
ab616d3
View commit details
Copy full SHA for ab616d3
View code at this point
Browse repository at this point
Commits on Mar 27, 2022
bpo-45171: Remove tests of deprecated logger.warn(). (GH-32139)
joukewitteveen
authored
c12ba6b
View commit details
Copy full SHA for c12ba6b
View code at this point
Browse repository at this point
bpo-45171: Fix stacklevel handling in logging. (GH-28287)
joukewitteveen
authored
5ca6d74
View commit details
Copy full SHA for 5ca6d74
View code at this point
Browse repository at this point
Commits on Mar 15, 2022
bpo-46557: Log captured warnings without format string (GH-30975)
mnito
authored
d8066b4
View commit details
Copy full SHA for d8066b4
View code at this point
Browse repository at this point
Commits on Jul 25, 2021
bpo-42378: fixed log truncation on logging shutdown (GH-27310)
Show description for 96cf5a6
akulakov
authored
96cf5a6
View commit details
Copy full SHA for 96cf5a6
View code at this point
Browse repository at this point
Commits on Jun 3, 2021
bpo-43858: Add logging.getLevelNamesMapping() (GH-26459)
Show description for 8b93f0e
akulakov
authored
8b93f0e
View commit details
Copy full SHA for 8b93f0e
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.