Skip to content

createJsonlAuditLog

function createJsonlAuditLog(writer: JsonlWriter): MftAuditLog;

Defined in: src/mft/audit.ts:88

Creates an audit log that streams records as newline-delimited JSON.

list() is not supported by the JSONL writer because the durable form is append-only on disk. Callers that need to read back entries should pair the JSONL log with an InMemoryAuditLog via composeAuditLogs.

ParameterTypeDescription
writerJsonlWriterSink that receives one JSON line per record.

MftAuditLog

A log that writes JSONL on every record call.