简体   繁体   中英

Audit Trail in Apex application using SQL

My Apex application has to capture users on when they accessed the application and what they queried within the application. Since this is a Read-only application the application need not capture insert, update or delete changes.

Could this be done with Apex? If you could explain on how this can be done, it will be very helpful.

Thanks

Your question is too broad. I can only show directions for work:

  • to audit logging you can create custom authentication scheme and write login attempts within an authentication function.
  • to audit actions you can use processes. A process with type On Load - Before Header can be used for logging visited pages, a process with type On Submit - for logging actions.

Edit
I've just found this chapter in APEX documentation: Creating Custom Activity Reports Using APEX_ACTIVITY_LOG . As I can understand, it is exactly what you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM