Tools, FAQ, Tutorials:
'trace' Policy Statement
How to use the "trace" Policy Statement for an Azure API service operation?
✍: FYIcenter.com
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.
⇒ '@(...)' Expressions in Azure API Policy
2018-03-10, ∼2868🔥, 0💬
Popular Posts:
How to add a new operation to an API on the Publisher Dashboard of an Azure API Management Service? ...
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to pull NVIDIA CUDA Docker Image with the "docker image pull nvidia/cuda" command? If you are ru...
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
Where to find tutorials on HTML language? I want to know how to learn HTML. Here is a large collecti...