From: Vinay Sajip Date: Wed, 1 Jun 2022 07:29:13 +0000 (+0100) Subject: [doc] Improve discoverability of links between logging documents. (GH-93405) X-Git-Tag: v3.12.0a1~1379 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=132e563703ed634312e54c04a9b1636f8b0e2923;p=thirdparty%2FPython%2Fcpython.git [doc] Improve discoverability of links between logging documents. (GH-93405) --- diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index 704279240b35..2b5eb8ff320d 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -7,7 +7,8 @@ Logging Cookbook :Author: Vinay Sajip This page contains a number of recipes related to logging, which have been found -useful in the past. +useful in the past. For links to tutorial and reference information, please see +:ref:`cookbook-ref-links`. .. currentmodule:: logging @@ -3075,3 +3076,23 @@ the :ref:`existing mechanisms ` for passing contextual information into your logs and restrict the loggers created to those describing areas within your application (generally modules, but occasionally slightly more fine-grained than that). + +.. _cookbook-ref-links: + +Other resources +--------------- + +.. seealso:: + + Module :mod:`logging` + API reference for the logging module. + + Module :mod:`logging.config` + Configuration API for the logging module. + + Module :mod:`logging.handlers` + Useful handlers included with the logging module. + + :ref:`Basic Tutorial ` + + :ref:`Advanced Tutorial ` diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst index cc4e278a7fe2..f024430cedb0 100644 --- a/Doc/howto/logging.rst +++ b/Doc/howto/logging.rst @@ -8,6 +8,9 @@ Logging HOWTO .. currentmodule:: logging +This page contains tutorial information. For links to reference information and a +logging cookbook, please see :ref:`tutorial-ref-links`. + Basic Logging Tutorial ---------------------- @@ -1109,6 +1112,11 @@ Also note that the core logging module only includes the basic handlers. If you don't import :mod:`logging.handlers` and :mod:`logging.config`, they won't take up any memory. +.. _tutorial-ref-links: + +Other resources +--------------- + .. seealso:: Module :mod:`logging`