summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-15 17:03:02 (GMT)
committerGeorg Brandl <georg@python.org>2011-01-15 17:03:02 (GMT)
commit375aec2315a497562c7ccb0baf12493090d0faf5 (patch)
tree77662f734ac17128f0614719f79ae04b4c978473 /Doc/howto
parent6dc50f34ddb8a5c3b11570575348c9b94919b024 (diff)
downloadcpython-375aec2315a497562c7ccb0baf12493090d0faf5.zip
cpython-375aec2315a497562c7ccb0baf12493090d0faf5.tar.gz
cpython-375aec2315a497562c7ccb0baf12493090d0faf5.tar.bz2
Fix a few doc errors, mostly undefined keywords.
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/logging-cookbook.rst5
-rw-r--r--Doc/howto/logging.rst10
2 files changed, 8 insertions, 7 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 7a13790..2305485 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -6,7 +6,8 @@ Logging Cookbook
:Author: Vinay Sajip <vinay_sajip at red-dove dot com>
-This page contains a number of recipes related to logging, which have been found useful in the past.
+This page contains a number of recipes related to logging, which have been found
+useful in the past.
.. currentmodule:: logging
@@ -283,7 +284,7 @@ One solution is to use a two-part approach. For the first part, attach only a
performance-critical threads. They simply write to their queue, which can be
sized to a large enough capacity or initialized with no upper bound to their
size. The write to the queue will typically be accepted quickly, though you
-will probably need to catch the :ref:`queue.Full` exception as a precaution
+will probably need to catch the :exc:`queue.Full` exception as a precaution
in your code. If you are a library developer who has performance-critical
threads in their code, be sure to document this (together with a suggestion to
attach only ``QueueHandlers`` to your loggers) for the benefit of other
diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst
index f0d88dc..a7d6024 100644
--- a/Doc/howto/logging.rst
+++ b/Doc/howto/logging.rst
@@ -214,8 +214,8 @@ multiple modules, using the pattern in *mylib.py*. Note that for this simple
usage pattern, you won't know, by looking in the log file, *where* in your
application your messages came from, apart from looking at the event
description. If you want to track the location of your messages, you'll need
-to refer to the documentation beyond the tutorial level - see
-:ref:`advanced-logging-tutorial`.
+to refer to the documentation beyond the tutorial level -- see
+:ref:`logging-advanced-tutorial`.
Logging variable data
@@ -549,9 +549,9 @@ Programmers can configure logging in three ways:
3. Creating a dictionary of configuration information and passing it
to the :func:`dictConfig` function.
-For the reference documentation on the last two options, see :ref:`config-ref`.
-The following example configures a very simple logger, a console handler, and
-a simple formatter using Python code::
+For the reference documentation on the last two options, see
+:ref:`logging-config-api`. The following example configures a very simple
+logger, a console handler, and a simple formatter using Python code::
import logging