def get_logs_with_fields(
    *fields: str,
    mode: str = "all",
    project: Optional[str] = None,
    api_key: Optional[str] = None,
) -> List[Log]:

source code

Returns a list of logs which contain the specified fields, either the logs which contain all of them (“all”) or the logs which contain any of the fields (“any”).

Arguments:

  • fields - The fields to retrieve logs for.
  • mode - The retrieval mode, either returning the logs with all of the fields or
  • project - Name of the project to get logs from.
  • api_key - If specified, unify API key to be used. Defaults to the value in the

Returns:

A list of logs which contain the specified fields.