Message Boards
Rest Builder Service - Log request and response
Alex Pasquini, modified 2 Years ago.
Rest Builder Service - Log request and response
Junior Member Posts: 38 Join Date: 3/3/20 Recent PostsHi all,
I've implemented rest builder service, and I'd like to log request and response for debug purpose.
Is it possible to enable this behaviour?
If it's not, is possible to enable the same behaviour on Service Builder Service which is called by Rest Builder Service?
Thank you.
Best regards,
Alex
Mohammed Yasin, modified 2 Years ago.
RE: Rest Builder Service - Log request and response
Liferay Master Posts: 591 Join Date: 8/8/14 Recent PostsHi,
For Audit/tracking purpose you can create Servlet Filter and use the request object there:
https://help.liferay.com/hc/en-us/articles/360020486752-Servlet-Filters
Also you can use AccessControlPolicy Component, if you're using JsonWebservice, you refer to the below post: