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?
optionaltable?:string
Defined in: audit/src/types.ts:105
Table name for the database driver.
Default
'audit_logs'
pruneKeep?
optionalpruneKeep?: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?
optionalcaptureRequest?:boolean
Defined in: audit/src/types.ts:117
Whether to automatically capture request metadata (IP, UA, URL) from the active RequestContext.
Default
true