]> granicus.if.org Git - python/commitdiff
Refined section on logging to one file from multiple processes.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 15 Aug 2009 23:34:47 +0000 (23:34 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 15 Aug 2009 23:34:47 +0000 (23:34 +0000)
Doc/library/logging.rst

index 5c8599a02dbe5eaa89c81da4403ab083b61e04ee..53ba9a93a93664a400bb9e6d5a2e5bb4894705bd 100644 (file)
@@ -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