I have followed the instruction to setup Audit Logging located here https://wiki.servoy.com/display/SERV61/Implementing+Audit+Logging but nothing is ever getting written to my log DB. I then realised that we are not using servoy users, rather our own users table for logging into our application. Is there a way to make Audit Logging work for ANY user? That is the only thing I can think of that is causing nothing to be logged because our “users” are not part of any Servoy Security Group. Is there something else I might be missing here?
I figured out my initial issue. Although i specify a group in the security.login call security.login(username,userid,['Users']); it appears that I still have to add the user to the group as follows ```
security.addUserToGroup(userid,‘Users’);
That seems to have solved my initial issue. Now, I have another issue in that I need another column logged to the audit log 'log' table beside the default columns. Although the table has a user_uid column, our solution utilizes separate databases for each of our clients and we distinguish between those users (which may have the same user_uid) by the use of an organization id (org_id). I need to have the audit log table include the org_id as well. How can I accomplish this?
Thanks,
Keith
Keith,
Have a look at databaseManager.addTrackingInfo()
Rob