<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _log_exception(self, exception):
 """ Logs an exception. :param Exception exception: The exception. :rtype: None """

        self._io.error(str(exception).strip().split(os.linesep))