code: def format(logger,
             show_successful=True,
             show_errors=True,
             show_traceback=True):
      
      output = []
  
      # Print failed actions.
      errors = logger.get_aborted_actions()
      if show_errors and errors:
          output += _underline('Failed actions:')
          for log in logger.get_aborted_logs():
              if show_traceback:
                  output.append(log.get_name() + ':')
                  output.append(log.get_error())
              else:
                  output.append(log.get_name() + ': ' + log.get_error(False))
          output.append('')
  
      # Print successful actions.
      if show_successful:
          output += _underline('Successful actions:')
          for log in logger.get_succeeded_logs():
              output.append(log.get_name())
          output.append('')
  
      return '\n'.join(output).strip()
docs: Prints a report of the actions that were logged by the given Logger.
      The report contains a list of successful actions, as well as the full
      error message on failed actions.
  
      :type  logger: Logger
      :param logger: The logger that recorded what happened in the queue.
      :rtype:  string
      :return: A string summarizing the status of every performed task.