https://github.com/python/cpython/commit/2ae3c92be136b26a1de89670a4a425c97ed06079
commit: 2ae3c92be136b26a1de89670a4a425c97ed06079
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: vsajip <[email protected]>
date: 2026-03-06T08:51:02Z
summary:

[3.13] doc: Clarify logger creation example in logging HOWTO (GH-145540) 
(GH-145561)

(cherry picked from commit e0945443a0abdee56a51a5cb82a31edba5f1adab)

Co-authored-by: Yash Kaushik <[email protected]>

files:
M Doc/howto/logging.rst

diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst
index 5a66df722ff03f..3a52e7322dcbca 100644
--- a/Doc/howto/logging.rst
+++ b/Doc/howto/logging.rst
@@ -28,7 +28,7 @@ When to use logging
 ^^^^^^^^^^^^^^^^^^^
 
 You can access logging functionality by creating a logger via ``logger =
-getLogger(__name__)``, and then calling the logger's :meth:`~Logger.debug`,
+logging.getLogger(__name__)``, and then calling the logger's 
:meth:`~Logger.debug`,
 :meth:`~Logger.info`, :meth:`~Logger.warning`, :meth:`~Logger.error` and
 :meth:`~Logger.critical` methods. To determine when to use logging, and to see
 which logger methods to use when, see the table below. It states, for each of a

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to