Hand-written application-layer audit table
Hand-rolledIn business code, when a key operation completes, insert a record into a dedicated "audit table" as a side step.
Best forProjects with few kinds of operations to record, and that need business semantics (login, export, permission changes).
Avoid whenYou need to automatically track every change to every table.
Most intuitive, and you decide what to record and in how much detail
Can record business meaning (such as "an admin exported the customer list"), not just data changes
Does not depend on a specific library or database feature
Relies entirely on developer discipline, and one missed spot means one missing record
Code must be added manually to every feature, and easily gets mixed into business logic
Operations that modify the database directly, bypassing the application, are not recorded