def add_logs_to_context(
    log_ids: List[int],
    *,
    context: Optional[str] = None,
    project: Optional[str] = None,
    api_key: Optional[str] = None,
) -> None:

source code

Add logs to a context.

Arguments:

  • log_ids - List of log ids to add to the context.
  • context - Name of the context to add the logs to.
  • project - Name of the project the logs belong to.
  • api_key - If specified, unify API key to be used. Defaults to the value in the

Returns:

A message indicating whether the logs were successfully added to the context.