[issue27837] Logging Cookbook Improvement

2016-08-23 Thread Niko Yasui
Niko Yasui added the comment: I see, I didn't realize that the simpler code would break under certain conditions. While there are definitely simpler examples in other documents, I haven't been able to find any indication that there is a simpler way to do multiprocessing and loggin

[issue27837] Logging Cookbook Improvement

2016-08-23 Thread Niko Yasui
Changes by Niko Yasui : Removed file: http://bugs.python.org/file44198/multi_log_cookbook.py ___ Python tracker <http://bugs.python.org/issue27837> ___ ___ Python-bug

[issue27837] Logging Cookbook Improvement

2016-08-23 Thread Niko Yasui
Niko Yasui added the comment: Thank you both for the helpful comments. Vinay, since you want to illustrate a listener process in the multiprocessing example, why not include a shorter, simpler example beforehand? This is my first time using logging, and it took me multiple hours to figure out

[issue27837] Logging Cookbook Improvement

2016-08-23 Thread Niko Yasui
New submission from Niko Yasui: Removed the unnecessary listener function and changed the worker loggers from root to children. Also replaced print statements with logging statements and a stdout handler to illustrate the usefulness of handler levels. This version also doesn't requ