Jump to content


Logging all actions

log logging activity actions

  • Please log in to reply
2 replies to this topic

#1 Jakes

Jakes

    Newbie

  • Members
  • Pip
  • 3 posts

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



#2 xheradon

xheradon

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts
  • LocationSpain

Posted 06 April 2017 - 11:21 AM

Maybe using callbacks? http://www.grocerycr...using_callbacks



#3 Jakes

Jakes

    Newbie

  • Members
  • Pip
  • 3 posts

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







Also tagged with one or more of these keywords: log, logging, activity, actions

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users