Skip to content

Commit 34701ca

Browse files
YK-03miss-islington
authored andcommitted
doc: Clarify logger creation example in logging HOWTO (GH-145540)
(cherry picked from commit e094544) Co-authored-by: Yash Kaushik <yash005kaushik@gmail.com>
1 parent 1bc55a0 commit 34701ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/howto/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ When to use logging
2828
^^^^^^^^^^^^^^^^^^^
2929

3030
You can access logging functionality by creating a logger via ``logger =
31-
getLogger(__name__)``, and then calling the logger's :meth:`~Logger.debug`,
31+
logging.getLogger(__name__)``, and then calling the logger's :meth:`~Logger.debug`,
3232
:meth:`~Logger.info`, :meth:`~Logger.warning`, :meth:`~Logger.error` and
3333
:meth:`~Logger.critical` methods. To determine when to use logging, and to see
3434
which logger methods to use when, see the table below. It states, for each of a

0 commit comments

Comments
 (0)