# Audit Logging

**URL:** <https://forum.servoy.com/t/audit-logging/17670>\
**Category:** Classic Servoy\
**Created:** [December 5, 2013, 7:11pm UTC](https://forum.servoy.com/t/audit-logging/17670 "2013-12-05T19:11:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CFDaddy](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CFDaddy](https://forum.servoy.com/u/CFDaddy)\
**Post date:** [December 5, 2013, 7:11pm UTC](https://forum.servoy.com/t/audit-logging/17670/1 "2013-12-05T19:11:23Z")

</div>

I have followed the instruction to setup Audit Logging located here [https://wiki.servoy.com/display/SERV61/Implementing+Audit+Logging](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?

---

<div class="post-metadata">

**Author:** ![CFDaddy](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CFDaddy](https://forum.servoy.com/u/CFDaddy)\
**Post date:** [December 6, 2013, 5:58pm UTC](https://forum.servoy.com/t/audit-logging/17670/2 "2013-12-06T17:58:54Z")

</div>

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’);

```auto

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
```

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [December 16, 2013, 9:37am UTC](https://forum.servoy.com/t/audit-logging/17670/3 "2013-12-16T09:37:03Z")

</div>

Keith,

Have a look at databaseManager.addTrackingInfo()

Rob
