code: def do_handle_log(self, workunit, level, *msg_elements):
      
      # If the element is a (msg, detail) pair, we ignore the detail. There's no
      # useful way to display it on the console.
      elements = [e if isinstance(e, string_types) else e[0] for e in msg_elements]
      msg = '\n' + ''.join(elements)
      if self.settings.color:
        msg = red(msg)
      self._emit(msg)
docs: Implementation of Reporter callback.