interface AuditStorageOptions

Options passed to individual storage backends.

Properties

optional
logger: ILogger

Injected ILogger for LogAuditStorage; overrides ctx.logger.

optional
level: "info" | "warn" | "error"

Logger method to emit at ('info'/'warn'/'error'); default 'info'.

Injected database client for DatabaseAuditStorage.

optional
table: string

Table name for DatabaseAuditStorage; defaults to 'audit_logs'.

optional
path: string

JSONL file path for FileAuditStorage; defaults to './audit.log'.

Usage

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