From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 5 Mar 2026 18:02:56 +0000 (+0100) Subject: [3.14] doc: Clarify logger creation example in logging HOWTO (GH-145540) (GH-145562) X-Git-Tag: v3.14.4~203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7fb2359e8834557b41abf51a848e7bdd2d6e58f;p=thirdparty%2FPython%2Fcpython.git [3.14] doc: Clarify logger creation example in logging HOWTO (GH-145540) (GH-145562) doc: Clarify logger creation example in logging HOWTO (GH-145540) (cherry picked from commit e0945443a0abdee56a51a5cb82a31edba5f1adab) Co-authored-by: Yash Kaushik --- diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst index b7225ff1c2cb..454e2f4930e7 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