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

Skip to content

Commit 7d10129

Browse files
committed
Added logging documentation cross-references.
1 parent b4ca59b commit 7d10129

2 files changed

Lines changed: 30 additions & 4 deletions

File tree

Doc/howto/logging-cookbook.rst

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,8 @@ example. You would want to set *maxBytes* to an appropriate value.
966966

967967
.. _zeromq-handlers:
968968

969-
Subclassing QueueHandler
970-
------------------------
969+
Subclassing QueueHandler - a ZeroMQ example
970+
-------------------------------------------
971971

972972
You can use a :class:`QueueHandler` subclass to send messages to other kinds
973973
of queues, for example a ZeroMQ 'publish' socket. In the example below,the
@@ -1006,8 +1006,8 @@ data needed by the handler to create the socket::
10061006
self.queue.close()
10071007

10081008

1009-
Subclassing QueueListener
1010-
-------------------------
1009+
Subclassing QueueListener - a ZeroMQ example
1010+
--------------------------------------------
10111011

10121012
You can also subclass :class:`QueueListener` to get messages from other kinds
10131013
of queues, for example a ZeroMQ 'subscribe' socket. Here's an example::
@@ -1024,4 +1024,17 @@ of queues, for example a ZeroMQ 'subscribe' socket. Here's an example::
10241024
return logging.makeLogRecord(json.loads(msg))
10251025

10261026

1027+
.. seealso::
10271028

1029+
Module :mod:`logging`
1030+
API reference for the logging module.
1031+
1032+
Module :mod:`logging.config`
1033+
Configuration API for the logging module.
1034+
1035+
Module :mod:`logging.handlers`
1036+
Useful handlers included with the logging module.
1037+
1038+
:ref:`A basic logging tutorial <logging-basic-tutorial>`
1039+
1040+
:ref:`A more advanced logging tutorial <logging-advanced-tutorial>`

Doc/howto/logging.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,3 +1015,16 @@ Also note that the core logging module only includes the basic handlers. If
10151015
you don't import :mod:`logging.handlers` and :mod:`logging.config`, they won't
10161016
take up any memory.
10171017

1018+
.. seealso::
1019+
1020+
Module :mod:`logging`
1021+
API reference for the logging module.
1022+
1023+
Module :mod:`logging.config`
1024+
Configuration API for the logging module.
1025+
1026+
Module :mod:`logging.handlers`
1027+
Useful handlers included with the logging module.
1028+
1029+
:ref:`A logging cookbook <logging-cookbook>`
1030+

0 commit comments

Comments
 (0)