def get_log_by_value(
    *,
    project: Optional[str] = None,
    api_key: Optional[str] = None,
    **data,
) -> Optional[unify.Log]:

source code

Returns the log with the data matching exactly if it exists, otherwise returns None.

Arguments:

  • 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
  • data - The data to search the upstream logs for.

Returns:

The single log which matches the data, if it exists.