Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e998386

Browse files
committed
Fix markup errors.
1 parent d311374 commit e998386

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Doc/howto/logging-cookbook.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ call to one of the XXXMessage classes.
10941094

10951095
.. currentmodule:: logging
10961096

1097-
.. custom-logrecord:
1097+
.. _custom-logrecord:
10981098

10991099
Customising ``LogRecord``
11001100
-------------------------
@@ -1134,9 +1134,7 @@ The second approach works reasonably well for many cases, but does not allow
11341134
you to e.g. use a specialized subclass of :class:`LogRecord`. Library
11351135
developers can set a suitable filter on their loggers, but they would have to
11361136
remember to do this every time they introduced a new logger (which they would
1137-
do simply by adding new packages or modules and doing
1138-
1139-
.. code-block:: python
1137+
do simply by adding new packages or modules and doing ::
11401138

11411139
logger = logging.getLogger(__name__)
11421140

0 commit comments

Comments
 (0)