def create_logs(
    *,
    project: Optional[str] = None,
    context: Optional[str] = None,
    params: Optional[Union[List[Dict[str, Any]], Dict[str, Any]]] = None,
    entries: Optional[Union[List[Dict[str, Any]], Dict[str, Any]]] = None,
    mutable: Optional[Union[bool, Dict[str, bool]]] = True,
    batched: bool = False,
    api_key: Optional[str] = None,
) -> List[int]:

source code

Creates one or more logs associated to a project.

Arguments:

  • project - Name of the project the stored logs will be associated to.
  • context - Context for the logs.
  • entries - List of dictionaries with the entries to be logged.
  • params - List of dictionaries with the params to be logged.
  • mutable - Either a boolean to apply uniform mutability for all fields, or a dictionary mapping field names to booleans for per-field control. Defaults to True.
  • api_key - If specified, unify API key to be used. Defaults to the value in the

Returns:

A list of the created logs.