code: def log(self, **kwargs):
          
          key_values = {}
          if logs.EVENT in kwargs:
              key_values[logs.EVENT] = kwargs[logs.EVENT]
          if 'payload' in kwargs:
              key_values['payload'] = kwargs['payload']
          timestamp = None
          if 'timestamp' in kwargs:
              timestamp = kwargs['timestamp']
          return self.log_kv(key_values, timestamp)
docs: DEPRECATED