Structs§
- Audit
Config - How the auditor behaves when it cannot write.
- Audit
Version Resource - Read-only view over
adminx_audit_versions. - Storage
Auditor - Writes audit entries through the globally registered
Storage.
Constants§
- TABLE
- Where audit rows are written. Exposed so a deployment can point the log at a separate table (or a separate database, via a storage backend of its own).
Functions§
- init
- Register the auditor with adminx-core. Call after storage is set (and, on a
SQL backend, after running
migrate_sql). - migrate_
sql - SQL
CREATE TABLE IF NOT EXISTS+ index statements for the audit table. Run once on a SQL backend viaadminx_core::seed(adminx_audit::migrate_sql()). Mongo needs nothing (collections auto-create). - register_
resources - Register the read-only in-panel log viewer at
/adminx/adminx-audit-versions/list. Optional — omit it to keep the log out of the UI and query it directly.