'trace' Policy Statement
How to use the "trace" Policy Statement for an Azure API service operation?
The "trace" policy statement allows you to generate debugging messages into the API trace output. The "trace" statement can be used in any policy blocks in the policy XML document.
The "trace" statement has the following syntax:
<trace source="MyDebug"/> <!-- string expression or text --> </trace>
For example, the following inbound policy uses a "trace" statement to generate message using a text to the API trace output identified as "MyDebug":
<inbound> <trace source="MyDebug"/>I am here!</trace> </inbound>
The following inbound policy uses a "trace" statement to generate message using a C# string expression to the API trace output identified as "MyDebug":
<inbound> <trace source="MyDebug"/> @("I am here!")</trace> </inbound>
When you test the API operation with this policy on Azure developer portal, you will see a "MyDebug" section in the "trace" output tab displaying the given message.
For more information on "trace" policy statement, see API Management policies Website.
2018-03-10, 1226👍, 0💬
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How to add request query string Parameters to my Azure API operation to make it more user friendly? ...
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to create Hello-2.0.epub with WinRAR? I have all required files to create Hello-2.0.epub. To cre...
How to include additional claims in Azure AD v2.0 id_tokens? If you want to include additional claim...