code: def emit(self, record):
          
          message = super(CloudLoggingHandler, self).format(record)
          self.transport.send(record, message, resource=self.resource, labels=self.labels)
docs: Actually log the specified logging record.
  
          Overrides the default emit behavior of ``StreamHandler``.
  
          See https://docs.python.org/2/library/logging.html#handler-objects
  
          :type record: :class:`logging.LogRecord`
          :param record: The record to be logged.