'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, 420👍, 0💬
How To Add Column Headers to a Table? If you want to add column headers to a table, you need to use ...
How To Return a Reference from a Function? in PHP? To return a reference from a function, you need t...
Can You Add Values to an Array without Keys in PHP? Can You Add Values to an Array with a Key? The a...
Where to find tutorials on Python programming language? I want to learn Python. Here is a large coll...
What Is an HTML http-equiv "meta" Tag/Element? a http-equiv "meta" element is a special "meta" eleme...