[Python-checkins] r74468 - python/branches/py3k/Doc/library/logging.rst
vinay.sajip
python-checkins at python.org
Sun Aug 16 01:35:08 CEST 2009
Author: vinay.sajip
Date: Sun Aug 16 01:35:08 2009
New Revision: 74468
Log:
Refined section on logging to one file from multiple processes.
Modified:
python/branches/py3k/Doc/library/logging.rst
Modified: python/branches/py3k/Doc/library/logging.rst
==============================================================================
--- python/branches/py3k/Doc/library/logging.rst (original)
+++ python/branches/py3k/Doc/library/logging.rst Sun Aug 16 01:35:08 2009
@@ -1331,6 +1331,12 @@
this approach in more detail and includes a working socket receiver which can
be used as a starting point for you to adapt in your own applications.
+If you are using a recent version of Python which includes the
+:mod:`multiprocessing` module, you can write your own handler which uses the
+:class:`Lock` class from this module to serialize access to the file from
+your processes. The existing :class:`FileHandler` and subclasses do not make
+use of :mod:`multiprocessing` at present, though they may do so in the future.
+
.. _network-logging:
Sending and receiving logging events across a network
More information about the Python-checkins
mailing list