summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2009-08-15 23:34:47 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2009-08-15 23:34:47 (GMT)
commit1c0b24fb675546af60ffae2281fdfbd381baa323 (patch)
tree5382c10670126d6340ff5615b4e596d8e2168f2a /Doc/library/logging.rst
parent3a0dc309479e0b65bc51f14627d32eb229b44b0b (diff)
downloadcpython-1c0b24fb675546af60ffae2281fdfbd381baa323.zip
cpython-1c0b24fb675546af60ffae2281fdfbd381baa323.tar.gz
cpython-1c0b24fb675546af60ffae2281fdfbd381baa323.tar.bz2
Refined section on logging to one file from multiple processes.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 5c8599a..53ba9a9 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1354,6 +1354,12 @@ existing processes to perform this function.) The following section documents
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