Hi,
I've been planning to add audit logging to the project.
But, I can not decide which approach is the best;
Using signals or creating middleware?
Project needs to being log events on change of model object with these informations below:
- If a record is inserted, updated and deleted:
- who is taking this action (ForeignKey)
- what is the action (Choice)
- which applications model object affected (ContentType)
- affected object (Generic relation)
- current data in json format
- previous data in json format
Kind regards,
Sencer HAMARAT