summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-28 07:21:49 (GMT)
committerGeorg Brandl <georg@python.org>2012-02-28 07:21:49 (GMT)
commit86798d4ff96422fde089e51d92a565c24248096a (patch)
tree8b04cec9e894db02b3f5a9c926486646b417e961 /Doc/howto
parentb46a1793a787747d59e735e12471b3a309aa51da (diff)
parente998386442ba491573e6f5cfa43b365f4995d93b (diff)
downloadcpython-86798d4ff96422fde089e51d92a565c24248096a.zip
cpython-86798d4ff96422fde089e51d92a565c24248096a.tar.gz
cpython-86798d4ff96422fde089e51d92a565c24248096a.tar.bz2
Merge with 3.2.
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/logging-cookbook.rst6
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 536135b..f014cb5 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -1094,7 +1094,7 @@ call to one of the XXXMessage classes.
.. currentmodule:: logging
-.. custom-logrecord:
+.. _custom-logrecord:
Customising ``LogRecord``
-------------------------
@@ -1134,9 +1134,7 @@ The second approach works reasonably well for many cases, but does not allow
you to e.g. use a specialized subclass of :class:`LogRecord`. Library
developers can set a suitable filter on their loggers, but they would have to
remember to do this every time they introduced a new logger (which they would
-do simply by adding new packages or modules and doing
-
-.. code-block:: python
+do simply by adding new packages or modules and doing ::
logger = logging.getLogger(__name__)