Skip to content

AuditLogOptions

Defined in: audit.ts:49

optional onSinkError?: (error, record, ctx) => void

Defined in: audit.ts:57

Called when the sink write itself throws. The primary operation always succeeds regardless — a sink outage must never take down the service it’s auditing. Defaults to logging via app.get<Logger>("logger") when present (see @mantlejs/logger), otherwise silent.

unknown

AuditRecord

HookContext

void


sink: Repository<AuditRecord>

Defined in: audit.ts:51

Where audit records are written. Any Repository<T> the deployment already has — Postgres, Mongo, memory, whatever.