AuditLogOptions
Defined in: audit.ts:49
Properties
Section titled “Properties”onSinkError?
Section titled “onSinkError?”
optionalonSinkError?: (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.
Parameters
Section titled “Parameters”unknown
record
Section titled “record”Returns
Section titled “Returns”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.