seltzer icon indicating copy to clipboard operation
seltzer copied to clipboard

Add event log and report

Open elplatt opened this issue 12 years ago • 4 comments

Create a log module with a log() function that other modules can call.

This will require creating a new table with the following columns:

  • lid - the log id
  • time - the time of the log entry
  • cid - the cid of the logged in user
  • message - the log message

What types of events should be logged?

elplatt avatar Aug 12 '12 00:08 elplatt

Suggestions for events to be logged: add or delete user change user permissions add, delete or change plans add, delete or change roles

The hope is that we could roll back erroneous changes, or at least know who was responsible.

kc8nod avatar Dec 30 '12 04:12 kc8nod

add to that list add, edit, or delete payments

(it's tempting to just write LOG ALL THE THINGS, but that would get a bit big :P )

chris18890 avatar Feb 12 '13 01:02 chris18890

I'd like to take a crack at making this module. It would be a great paper trail or audit trail for others to ask "Hey who added this credit to this member's account?" and get an answer! Would this just be like any other module / add on or would there be something different?

ramgarden avatar Dec 30 '15 02:12 ramgarden

This could be a very simple module to write. I'd suggest modeling it after the drupal watchog module: https://www.drupal.org/node/86124

You'll need to create a database table (see how other modules do it).

elplatt avatar Dec 30 '15 02:12 elplatt