Class and Method to log Payload outside the Proxy

dilip
Participant I

Dear Team,

I have a Requirement to log the Each Request and Response Payload,not specific to any proxy, which came to APIGEE Endpoint. As I am aware that, we could used context variable within the Proxy.But I want to log every request and Response.

So is there any variable which could we used for the Same.Or How could we do that.

Thanks for your Support.

0 1 53
1 REPLY 1

The documentation for the Message Logging policy includes samples that combined different variables

https://docs.apigee.com/api-platform/reference/policies/message-logging-policy#samples

There are flow variables available for request and response that can be used in a message logging policy or as part of an earlier assign message policy.

https://docs.apigee.com/api-platform/reference/variables-reference#request