@@ -473,9 +473,7 @@ libraries, then the logger name specified can be "orgname.foo" rather than
473473just "foo".
474474
475475.. versionadded :: 3.1
476- The :class: `NullHandler ` class was not present in previous versions, but is
477- now included, so that it need not be defined in library code.
478-
476+ The :class: `NullHandler ` class.
479477
480478
481479Logging Levels
@@ -593,8 +591,7 @@ provided:
593591 more information.
594592
595593.. versionadded :: 3.1
596-
597- The :class: `NullHandler ` class was not present in previous versions.
594+ The :class: `NullHandler ` class.
598595
599596The :class: `NullHandler `, :class: `StreamHandler ` and :class: `FileHandler `
600597classes are defined in the core logging package. The other handlers are
@@ -1816,6 +1813,7 @@ sends logging output to a disk file. It inherits the output functionality from
18161813
18171814 Outputs the record to the file.
18181815
1816+
18191817.. _null-handler :
18201818
18211819NullHandler
@@ -1827,12 +1825,10 @@ The :class:`NullHandler` class, located in the core :mod:`logging` package,
18271825does not do any formatting or output. It is essentially a "no-op" handler
18281826for use by library developers.
18291827
1830-
18311828.. class :: NullHandler()
18321829
18331830 Returns a new instance of the :class: `NullHandler ` class.
18341831
1835-
18361832 .. method :: emit(record)
18371833
18381834 This method does nothing.
@@ -2609,29 +2605,29 @@ wire).
26092605 Returns the message for this :class: `LogRecord ` instance after merging any
26102606 user-supplied arguments with the message.
26112607
2608+
26122609.. _logger-adapter :
26132610
26142611LoggerAdapter Objects
26152612---------------------
26162613
26172614:class: `LoggerAdapter ` instances are used to conveniently pass contextual
26182615information into logging calls. For a usage example , see the section on
2619- `adding contextual information to your logging output `__ .
2616+ :ref: `adding contextual information to your logging output < context-info >` .
26202617
2621- __ context-info _
26222618
26232619.. class :: LoggerAdapter(logger, extra)
26242620
2625- Returns an instance of :class: `LoggerAdapter ` initialized with an
2626- underlying :class: `Logger ` instance and a dict-like object.
2621+ Returns an instance of :class: `LoggerAdapter ` initialized with an
2622+ underlying :class: `Logger ` instance and a dict-like object.
26272623
2628- .. method :: process(msg, kwargs)
2624+ .. method :: process(msg, kwargs)
26292625
2630- Modifies the message and/or keyword arguments passed to a logging call in
2631- order to insert contextual information. This implementation takes the object
2632- passed as *extra * to the constructor and adds it to *kwargs * using key
2633- 'extra'. The return value is a (*msg *, *kwargs *) tuple which has the
2634- (possibly modified) versions of the arguments passed in.
2626+ Modifies the message and/or keyword arguments passed to a logging call in
2627+ order to insert contextual information. This implementation takes the object
2628+ passed as *extra * to the constructor and adds it to *kwargs * using key
2629+ 'extra'. The return value is a (*msg *, *kwargs *) tuple which has the
2630+ (possibly modified) versions of the arguments passed in.
26352631
26362632In addition to the above, :class: `LoggerAdapter ` supports all the logging
26372633methods of :class: `Logger `, i.e. :meth: `debug `, :meth: `info `, :meth: `warning `,
0 commit comments