[issue43877] Logging Cookbook ambiguity
New submission from Gene Ratzlaff <generatz@gmail.com>: In the section titled "Logging to a single file from multiple processes" I am puzzled by the second example, as follows: The first example has the listener/logger is in a separate >process< and the listener/logger process is (as I would anticipate) started >before< the worker/sender processes. In the 2nd example, the listener/logger is in a separate >thread< and the listener/logger thread is (oddly) started >after< the worker/sender processes. Please correct it, or explain in the Cookbook what is OK about doing it that way, and if it is OK, are there limitations to doing it that way? ---------- assignee: docs@python components: Documentation messages: 391267 nosy: bluebloodpole, docs@python priority: normal severity: normal status: open title: Logging Cookbook ambiguity type: enhancement _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43877> _______________________________________
Change by Ned Deily <nad@python.org>: ---------- nosy: +vinay.sajip _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43877> _______________________________________
Raymond Hettinger <raymond.hettinger@gmail.com> added the comment: The multiprocessing.Queue() instance will accumulate messages regardless of whether a producer or consumer is started first. ---------- nosy: +rhettinger _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43877> _______________________________________
Gene Ratzlaff <generatz@gmail.com> added the comment: Agreed, but only to the limits of the buffer - that's what I was getting at when I suggested that limitations should be explained. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43877> _______________________________________
Raymond Hettinger <raymond.hettinger@gmail.com> added the comment: The queue isn't being used with a maxsize. ---------- nosy: -vinay.sajip _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue43877> _______________________________________
participants (3)
-
Gene Ratzlaff -
Ned Deily -
Raymond Hettinger