Skip to content

Commit 2fe8630

Browse files
author
gitName
committed
logger
1 parent e8a2b7a commit 2fe8630

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

articles/api-management/api-management-howto-cache.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ To see the caching in action, call an operation from the portal.
8181
1. Select the API to which you added caching policies.
8282
1. Select an operation to test.
8383
1. Select the **Test** tab in the top right menu.
84-
1. Select **Send**.
84+
1. Select **Trace** two or three times in quick succession.
85+
1. Under **HTTP response**, select the **Trace** tab.
86+
1. Jump to the **Inbound** section and scroll to the `cache-lookup` policy. You should see a message similar to:
87+
` "Cache lookup resulted in a hit! Cached response will be used. Processing will continue from the step in the response pipeline that is after the corresponding `cache-store`."`
8588

8689
## Related content
8790
* For more information about caching policies, see [Caching policies][Caching policies] in the [API Management policy reference][API Management policy reference].

articles/api-management/api-management-log-to-eventhub-sample.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ An alternative option was to use the `application/http` media type as described
4545
To be able to create this message, we need to take advantage of C# based [Policy expressions](./api-management-policy-expressions.md) in Azure API Management. Here is the policy, which sends an HTTP request message to Azure Event Hubs.
4646

4747
```xml
48-
<log-to-eventhub logger-id="conferencelogger" partition-id="0">
48+
<log-to-eventhub logger-id="myapilogger" partition-id="0">
4949
@{
5050
var requestLine = string.Format("{0} {1} HTTP/1.1\r\n",
5151
context.Request.Method,
@@ -97,7 +97,7 @@ The policy to send the response HTTP message looks similar to the request and so
9797
<policies>
9898
<inbound>
9999
<set-variable name="message-id" value="@(Guid.NewGuid())" />
100-
<log-to-eventhub logger-id="conferencelogger" partition-id="0">
100+
<log-to-eventhub logger-id="myapilogger" partition-id="0">
101101
@{
102102
var requestLine = string.Format("{0} {1} HTTP/1.1\r\n",
103103
context.Request.Method,
@@ -125,7 +125,7 @@ The policy to send the response HTTP message looks similar to the request and so
125125
<forward-request follow-redirects="true" />
126126
</backend>
127127
<outbound>
128-
<log-to-eventhub logger-id="conferencelogger" partition-id="1">
128+
<log-to-eventhub logger-id="myapilogger" partition-id="1">
129129
@{
130130
var statusLine = string.Format("HTTP/1.1 {0} {1}\r\n",
131131
context.Response.StatusCode,

0 commit comments

Comments
 (0)