]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] doc: Clarify logger creation example in logging HOWTO (GH-145540) (GH-145561)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Mar 2026 08:51:02 +0000 (09:51 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2026 08:51:02 +0000 (08:51 +0000)
(cherry picked from commit e0945443a0abdee56a51a5cb82a31edba5f1adab)

Co-authored-by: Yash Kaushik <yash005kaushik@gmail.com>
Doc/howto/logging.rst

index 5a66df722ff03f015c61331b297865429e0476e6..3a52e7322dcbca55794502ae8174d81f0e9da656 100644 (file)
@@ -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