added example in doc for log_exception