code: def send(
          self, record, message, resource=None, labels=None, trace=None, span_id=None
      ):
          
          info = {"message": message, "python_logger": record.name}
          self.logger.log_struct(
              info,
              severity=record.levelname,
              resource=resource,
              labels=labels,
              trace=trace,
              span_id=span_id,
          )
docs: Overrides transport.send().
  
          :type record: :class:`logging.LogRecord`
          :param record: Python log record that the handler was called with.
  
          :type message: str
          :param message: The message from the ``LogRecord`` after being
                          formatted by the associated log formatters.
  
          :type resource: :class:`~google.cloud.logging.resource.Resource`
          :param resource: (Optional) Monitored resource of the entry.
  
          :type labels: dict
          :param labels: (Optional) Mapping of labels for the entry.