]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
doc: Clarify logger creation example in logging HOWTO (GH-145540)
authorYash Kaushik <yash005kaushik@gmail.com>
Thu, 5 Mar 2026 17:48:48 +0000 (23:18 +0530)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2026 17:48:48 +0000 (17:48 +0000)
Doc/howto/logging.rst

index b7225ff1c2cbfc863c7164f78d1aa3e81d23d1e9..454e2f4930e724d277ca585cb4e9cbfb09edb1e7 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