Implementing Audit Logging through application code is complex and not recommended. It is more efficient to implement Audit Logs directly in the database.
Audit Logging involves creating an Audit Log table and an Audit Log trigger for tracking user activity and changes in database tables.
The Audit Log table mirrors the structure of the target table with additional columns for storing old and new field values, action type, timestamp, and user information.
The Audit Log trigger captures changes in the database table and populates the Audit Log table with relevant information, such as the type of operation and user responsible for the change.