Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging user activity in db #16

Open
vulantro opened this issue Jun 13, 2019 · 1 comment
Open

Logging user activity in db #16

vulantro opened this issue Jun 13, 2019 · 1 comment
Labels

Comments

@vulantro
Copy link

It would be nice if this lib provided a way to log user activity. I mean, this should be configured when install, and with every successful db actions it should save the place, the action, and the new and old data with the username, provided by some other libs, eg. PHP-Auth to a pre-defined table.
Like: INSERT schema.table new_data:qwe old_data: rty user_id 3

@ocram ocram added the question label Jun 19, 2019
@ocram
Copy link
Contributor

ocram commented Jun 19, 2019

Thanks!

We’re not really sure if this library here is really the right place for this. Are you referring to a log of virtually every single write operation to the database, with both old and new data stored in the log?

Right now, we tend to think that your own application code would be a better place for this, if you want to implement custom logging, or the library in question, which should probably handle this itself. In fact, for PHP-Auth, something like this (for all actions critical to a user’s account and its security) is something we have already planned.

Would that be what you thought about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants