Documentation / @zerotal/audit / Audit
Variable: Audit
constAudit:Auditor
Defined in: audit/src/facades/Audit.ts:23
Audit facade — access the Auditor service from anywhere after boot.
Example
import { Audit } from "@zerotal/audit";
await Audit.log("password.changed", {
auditable_type: "User",
auditable_id: user.id,
});
const history = await Audit.historyFor("User", user.id, 25);