, , , .
bum bum baaaaa . , , - - (, ) .
, , , . , . , . :
import logging
log = logging
def get_some_cheese():
raise ValueError("Sorry, we're right out.")
try:
get_some_cheese()
except:
log.exception("What a waste of life")
, . , , , , , - , stdout/err, . , , - , , , .