function logActivities
logActivities(
activities: readonly ActivityToLog[],
transaction?: TxScope,
): Promise<ActivityLogEntry[]>

Log several activities as ONE write. A booking with many lines records a line apiece, and one insert per line would eat the edge request's subrequest budget; a batch costs the same single round-trip however many there are, and either they all land or none does. Returns the stored rows in the same order, with their plaintext messages. A caller may pass its open write transaction so the log and the action it records commit together.

Parameters

activities: readonly ActivityToLog[]
optional
transaction: TxScope

Return Type

Promise<ActivityLogEntry[]>

Usage

import { logActivities } from "doc.ts";