How can I log my Python errors?
Use logging.exception from with an except: handler to log the current exception, prepended with a message.
Source From Here Question I want to kill a whole process tree. What is the best way to do this using any common scripting languages? ...