code: def log_event(self, event, payload=None):
          
          if payload is None:
              return self.log_kv({logs.EVENT: event})
          else:
              return self.log_kv({logs.EVENT: event, 'payload': payload})
docs: DEPRECATED