This log file captures Rest API calls and also the subsequent AR API calls. The REST call includes Query parameters and Payload. All AR API calls log Fields and the Qualification being used for a specific request.
Log format:
"%date{${DATE_FORMAT}} | %-2thread | %-10X{userId} | %-10X{tenantId} | %msg%n"
Example:
18:29:02.565 | http-bio-8080-exec-24 | Allen | 000000000000001 | REST API called [ GET /smartit/restapi/person/supportgroupperson/Allen ] with parameters/payload [ Allen ]
Enabling the logger
By default, the logger is not enabled. When needed, this logger can be enabled through the logback.configuration configuration parameter in the Centralized configuration.
To enable the log, set the LOG_DATA_ACCESS property in the logback.configuration parameter to TRUE and set the log level to DEBUG. Changing the value does not require you to restart the services for it to take effect.
Note:
- For Tomcat server version above 8.0.39, you need to remove the loader class from the smartit.xml file to enable the smartit-data-access.log.
Best practice: Since enabling this logger will be an overhead to the system, we recommend that you enable the logs when you require to capture logs against specific use cases or scenarios and then disable it as soon as you are done.
Limitation: Currently JPA calls are not captured in this log.