Hey Guys I have researched and have tested few method for logging user activity such as when an user updates his profile details or when an user updates his status in a task.
What I require to log :
- User ID from session
- Table being updated
- Field Name
- Old Value
- New Value
- Timestamps
Method 1: Run an additional query along with the insert/update/delete query to store details.
Method 2: Using http://packalyst.com/packages/package/regulus/activity-log
In both the above methods I have to write multiple code for each create/update/delete I would like to know if there exist a better way to handel this problem.