Auditing

Xams provides comprehensive auditing capabilities for every record saved through the XamsDbContext. Track changes across your entities with granular control over which operations and fields to monitor.

Configuration

To enable auditing for an entity, navigate to the Auditing section in the Admin dashboard.

Select the Config tab and choose the entity you want to audit.

From the configuration screen, you can specify which operations to audit: create, update, delete, or read.

For create, update, and delete operations, you can select specific fields to track.

Audit History

The History tab displays all audit records organized by data operation and table.

Selecting an Audit History record reveals a detailed view of all fields modified during that operation.

Field History

The Field History tab presents audit records filtered by data operation, table name, and field name for granular tracking.

Database Schema

The auditing system uses four primary entities:

  • Audit: Defines which tables and operations to audit
  • AuditField: Specifies which fields to track for each audited entity
  • AuditHistory: Records when a record is created, updated, deleted, or read
  • AuditHistoryDetail: Stores field-level changes including old and new values

Was this page helpful?