Wraith.Audit (Wraith v0.1.0)

View Source

Who did what in the admin: an append-only log (AUDIT / <at>#<id>), written by the contexts' callers (LiveViews, API, MCP) through log/4. recent/1 is the dashboard's feed; entries are kept 90 days (ttl).

Summary

Functions

log(actor, action, subject, detail) — actor is a user map or an API-key label.

Functions

log(actor, action, subject \\ nil, detail \\ %{})

log(actor, action, subject, detail) — actor is a user map or an API-key label.

recent(limit \\ 50)