⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Logging all actions



Jakes
  • profile picture
  • Member

Posted 06 April 2017 - 11:20 AM

Good day

 

I would like to be able to log all user actions, such as when they create a new item, view any item, update an item etc.

 

I would like to know where I would be able to add the necessary code to do this?

 

I would like to be able to log the username (from my login framework), the action performed (create, view, update or delete), as well as some basic identifying information about the item. This can include the id of the object, as well as the table in which the object is/was stored.

 

I will add some PHP code to store the log details to another table in the database.

 

Any help would be appreciated.

 

Kind regards

Jakes


xheradon
  • profile picture
  • Member

Posted 06 April 2017 - 11:21 AM

Maybe using callbacks? http://www.grocerycrud.com/documentation/tutorial_using_callbacks


Jakes
  • profile picture
  • Member

Posted 06 April 2017 - 11:36 AM

Ah that seems like it could work.

 

Thank you, I will have a look into that now.

 

Kind regards

Jakes