audit logging
Recording who did what and when for important actions, such as payments or permission changes.
In more detail
Audit logs answer who did what and when after an incident or for compliance. Entries should be written for every sensitive action and protected from tampering.
Example
A shared wrapper around Server Actions can write the same audit entry for every mutation.Related terms
- higher-order function — A function that takes a function as an argument or returns one, such as map, filter or a wrapper that adds retries.
- Server Functions — Async functions marked with "use server" that run on the server but can be called from client components, for example as a form action.
Taught in
- Server Action Security: Zod Validation & Auth Gates — Next.js 15 & Modern App Router Architecture