The Python Oracle

How to duplicate sys.stdout to a log file?

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: Puzzle Game Looping

--

Chapters
00:00 Question
02:04 Accepted answer (Score 64)
03:11 Answer 2 (Score 151)
03:34 Answer 3 (Score 80)
04:48 Answer 4 (Score 64)
05:13 Thank you

--

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

Accepted answer links:
[multiprocessing]: http://docs.python.org/dev/library/multi...
[processing]: http://pypi.python.org/pypi/processing

Answer 2 links:
http://mail.python.org/pipermail/python-...

Answer 4 links:
[Logging to multiple destinations]: https://docs.python.org/3/howto/logging-...

--

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

--

Tags
#python #tee

#avk47