Add event log and report #13

Open
elplatt opened this Issue Aug 12, 2012 · 4 comments

Projects

None yet

4 participants

@elplatt
Owner
elplatt commented Aug 12, 2012

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?

@kc8nod
Collaborator
kc8nod commented Dec 30, 2012

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.

@chris18890
Contributor

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 )

@elplatt elplatt added this to the Backlog milestone Feb 27, 2014
@elplatt elplatt added the Approved label Feb 27, 2014
@elplatt elplatt self-assigned this Feb 27, 2014
@elplatt elplatt removed the Unapproved label Feb 27, 2014
@ramgarden

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?

@elplatt
Owner
elplatt commented Dec 30, 2015

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment