Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Rest Builder Service - Log request and response
Hi 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
Hi,
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:
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™