method AuditService.prototype.log
AuditService.prototype.log(entry: AuditEntry): Promise<void>

Appends an entry to the audit trail. Entries are immutable once written.

Parameters

The audit entry (without id/timestamp)

Return Type

Promise<void>

Throws

Propagates any storage rejection (never swallowed)

Usage

import { AuditService } from "audit-plugin/src/index.ts";