The Python Oracle

How should I log while using multiprocessing in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Ancient Construction

--

Chapters
00:00 Question
01:02 Accepted answer (Score 90)
01:52 Answer 2 (Score 148)
03:49 Answer 3 (Score 47)
04:37 Answer 4 (Score 35)
05:48 Thank you

--

Full question
https://stackoverflow.com/questions/6414...

Question links:
[multiprocessing]: http://docs.python.org/library/multiproc...
[the docs]: http://docs.python.org/library/multiproc...

Accepted answer links:
[select]: http://docs.python.org/library/select.ht...

Answer 2 links:
[multiprocessing-logging]: https://pypi.python.org/pypi/multiproces.../
https://github.com/jruere/multiprocessin...

Answer 3 links:
[QueueHandler]: https://docs.python.org/3/library/loggin...
[Logging to a single file from multiple processes]: https://docs.python.org/3/howto/logging-...
https://gist.github.com/vsajip/591589
[logutils]: https://pypi.org/project/logutils/

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #logging #multiprocessing

#avk47