Skip to main content
zerotal

Documentation


Documentation / @zerotal/audit / AuditConfigShape

Interface: AuditConfigShape

Defined in: audit/src/types.ts:95

Properties

driver

driver: "null" | "database"

Defined in: audit/src/types.ts:100

Which driver to use for storing audit logs.

Default

'database'

table?

optional table?: string

Defined in: audit/src/types.ts:105

Table name for the database driver.

Default

'audit_logs'

pruneKeep?

optional pruneKeep?: number

Defined in: audit/src/types.ts:111

Maximum number of audit records to keep per model instance. Older records are pruned automatically. 0 = unlimited.

Default

0

captureRequest?

optional captureRequest?: boolean

Defined in: audit/src/types.ts:117

Whether to automatically capture request metadata (IP, UA, URL) from the active RequestContext.

Default

true