[Python-checkins] r87498 - in python/branches/py3k/Doc/howto: logging-cookbook.rst logging.rst
vinay.sajip
python-checkins at python.org
Sun Dec 26 22:22:33 CET 2010
Author: vinay.sajip
Date: Sun Dec 26 22:22:33 2010
New Revision: 87498
Log:
Added logging documentation cross-references.
Modified:
python/branches/py3k/Doc/howto/logging-cookbook.rst
python/branches/py3k/Doc/howto/logging.rst
Modified: python/branches/py3k/Doc/howto/logging-cookbook.rst
==============================================================================
--- python/branches/py3k/Doc/howto/logging-cookbook.rst (original)
+++ python/branches/py3k/Doc/howto/logging-cookbook.rst Sun Dec 26 22:22:33 2010
@@ -966,8 +966,8 @@
.. _zeromq-handlers:
-Subclassing QueueHandler
-------------------------
+Subclassing QueueHandler - a ZeroMQ example
+-------------------------------------------
You can use a :class:`QueueHandler` subclass to send messages to other kinds
of queues, for example a ZeroMQ 'publish' socket. In the example below,the
@@ -1006,8 +1006,8 @@
self.queue.close()
-Subclassing QueueListener
--------------------------
+Subclassing QueueListener - a ZeroMQ example
+--------------------------------------------
You can also subclass :class:`QueueListener` to get messages from other kinds
of queues, for example a ZeroMQ 'subscribe' socket. Here's an example::
@@ -1024,4 +1024,17 @@
return logging.makeLogRecord(json.loads(msg))
+.. seealso::
+ Module :mod:`logging`
+ API reference for the logging module.
+
+ Module :mod:`logging.config`
+ Configuration API for the logging module.
+
+ Module :mod:`logging.handlers`
+ Useful handlers included with the logging module.
+
+ :ref:`A basic logging tutorial <logging-basic-tutorial>`
+
+ :ref:`A more advanced logging tutorial <logging-advanced-tutorial>`
Modified: python/branches/py3k/Doc/howto/logging.rst
==============================================================================
--- python/branches/py3k/Doc/howto/logging.rst (original)
+++ python/branches/py3k/Doc/howto/logging.rst Sun Dec 26 22:22:33 2010
@@ -1015,3 +1015,16 @@
you don't import :mod:`logging.handlers` and :mod:`logging.config`, they won't
take up any memory.
+.. seealso::
+
+ Module :mod:`logging`
+ API reference for the logging module.
+
+ Module :mod:`logging.config`
+ Configuration API for the logging module.
+
+ Module :mod:`logging.handlers`
+ Useful handlers included with the logging module.
+
+ :ref:`A logging cookbook <logging-cookbook>`
+
More information about the Python-checkins
mailing list