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

Skip to content

Commit 2427ab9

Browse files
committed
logging HOWTO: fixed markup for numbered handler list.
1 parent dc55540 commit 2427ab9

1 file changed

Lines changed: 15 additions & 19 deletions

File tree

Doc/howto/logging.rst

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -857,50 +857,46 @@ provided:
857857

858858
#. :class:`FileHandler` instances send messages to disk files.
859859

860-
.. currentmodule:: logging.handlers
861-
862-
#. :class:`BaseRotatingHandler` is the base class for handlers that
860+
#. :class:`~handlers.BaseRotatingHandler` is the base class for handlers that
863861
rotate log files at a certain point. It is not meant to be instantiated
864-
directly. Instead, use :class:`RotatingFileHandler` or
865-
:class:`TimedRotatingFileHandler`.
862+
directly. Instead, use :class:`~handlers.RotatingFileHandler` or
863+
:class:`~handlers.TimedRotatingFileHandler`.
866864

867-
#. :class:`RotatingFileHandler` instances send messages to disk
865+
#. :class:`~handlers.RotatingFileHandler` instances send messages to disk
868866
files, with support for maximum log file sizes and log file rotation.
869867

870-
#. :class:`TimedRotatingFileHandler` instances send messages to
868+
#. :class:`~handlers.TimedRotatingFileHandler` instances send messages to
871869
disk files, rotating the log file at certain timed intervals.
872870

873-
#. :class:`SocketHandler` instances send messages to TCP/IP
871+
#. :class:`~handlers.SocketHandler` instances send messages to TCP/IP
874872
sockets.
875873

876-
#. :class:`DatagramHandler` instances send messages to UDP
874+
#. :class:`~handlers.DatagramHandler` instances send messages to UDP
877875
sockets.
878876

879-
#. :class:`SMTPHandler` instances send messages to a designated
877+
#. :class:`~handlers.SMTPHandler` instances send messages to a designated
880878
email address.
881879

882-
#. :class:`SysLogHandler` instances send messages to a Unix
880+
#. :class:`~handlers.SysLogHandler` instances send messages to a Unix
883881
syslog daemon, possibly on a remote machine.
884882

885-
#. :class:`NTEventLogHandler` instances send messages to a
883+
#. :class:`~handlers.NTEventLogHandler` instances send messages to a
886884
Windows NT/2000/XP event log.
887885

888-
#. :class:`MemoryHandler` instances send messages to a buffer
886+
#. :class:`~handlers.MemoryHandler` instances send messages to a buffer
889887
in memory, which is flushed whenever specific criteria are met.
890888

891-
#. :class:`HTTPHandler` instances send messages to an HTTP
889+
#. :class:`~handlers.HTTPHandler` instances send messages to an HTTP
892890
server using either ``GET`` or ``POST`` semantics.
893891

894-
#. :class:`WatchedFileHandler` instances watch the file they are
892+
#. :class:`~handlers.WatchedFileHandler` instances watch the file they are
895893
logging to. If the file changes, it is closed and reopened using the file
896894
name. This handler is only useful on Unix-like systems; Windows does not
897895
support the underlying mechanism used.
898896

899-
#. :class:`QueueHandler` instances send messages to a queue, such as
897+
#. :class:`~handlers.QueueHandler` instances send messages to a queue, such as
900898
those implemented in the :mod:`queue` or :mod:`multiprocessing` modules.
901899

902-
.. currentmodule:: logging
903-
904900
#. :class:`NullHandler` instances do nothing with error messages. They are used
905901
by library developers who want to use logging, but want to avoid the 'No
906902
handlers could be found for logger XXX' message which can be displayed if
@@ -911,7 +907,7 @@ provided:
911907
The :class:`NullHandler` class.
912908

913909
.. versionadded:: 3.2
914-
The :class:`~logging.handlers.QueueHandler` class.
910+
The :class:`~handlers.QueueHandler` class.
915911

916912
The :class:`NullHandler`, :class:`StreamHandler` and :class:`FileHandler`
917913
classes are defined in the core logging package. The other handlers are

0 commit comments

Comments
 (0)