How can I log my Python errors?
try: do_something() except: # How can I log my exception here, complete with its traceback?
maybe not as stylish, but easier:
#!/bin/bash log="/var/log/yourlog" /path/to/your/script.py 2>&1 | (while read; do echo "$REPLY" >> $log; done)