Welcome Guest, Not a member yet? Register   Sign In
Logging database changes
#1

I need to track all the changes of data to the database to be able to find out later who did what in the application. I do not need it to be user-friendly (although that would be nice). I imaginge I could log all database inserts/updates/deletes using a database table like this:
user_id
table_name
entry_id
action_type
logged_data (serialized)
Has anyone done anything like that? Could you share your code or refer me to some code online?
It would be especially great if it could be done using a hook - without changing every single controller...
==

Donatas G.
Reply


Messages In This Thread
Logging database changes - by dgvirtual - 12-02-2021, 09:01 AM
RE: Logging database changes - by kenjis - 12-02-2021, 07:11 PM
RE: Logging database changes - by dgvirtual - 12-03-2021, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB