We are developing an app on AppExchange. We need to log which data is got by an user. For example: user A opens my app. From my app, he access object B. I need a log with information like:
Time: 2023/4/7 00:00:00
Account: User A
Method: myApp.GetObjectInfo
Type: MyCustomObject__c
Object Content: Object B
As our research, Event Monitoring is the closest feature we can use. However:
- Event Monitoring's logs are read-only. On the side of an app, we cannot create (or write) a custom log. So it's impossible for us customize what we want to log.
- We may see the log on Apex method call or API call by Salesforce. But it just contains the name of method that's called. No information about input parameter or output result.
- We may also see the log of "Real time event monitoring", however, it just logs for Salesforce's feature only. If users access data via my App, they are not logged.
So, my questions:
- Is there any way we can use Event Monitoring for our scenario?
- If it's impossible customizing Event Monitoring. Is it a good rough solution for us?