code: def do_handle_log(self, workunit, level, *msg_elements):
      
      message = self._render_message(*msg_elements)
      s = self._log_fmt_string.format(content_id=uuid.uuid4(),
                                      workunit_id=workunit.id,
                                      css_class=HtmlReporter._log_level_css_map[level],
                                      message=message)
  
      # Emit that javascript to the main report body.
      self._emit(s)
docs: Implementation of Reporter callback.