You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -264,9 +264,11 @@ Logs are output upon configuration refresh and contain detailed information on k
264
264
Servicerequestfailed.
265
265
```
266
266
267
-
268
267
Using `ILogger` isthepreferredmethodinASP.NETapplicationsandisprioritizedastheloggingsourceifaninstanceof `ILoggerFactory` ispresent. However, if `ILoggerFactory` isnotavailable, logscanalternativelybeenabledandconfiguredthroughthe [instructionsfor .NETCoreapps](./enable-dynamic-configuration-dotnet-core.md#logging-and-monitoring-v600-and-later). Formoreinformation, see [loggingin .NETCoreandASP.NETCore](/aspnet/core/fundamentals/logging).
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/enable-dynamic-configuration-dotnet-core.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,8 +151,18 @@ Logs are output upon configuration refresh and contain detailed information on k
151
151
| Verbose | Logs include the key and label of key-values your application monitors for changes from your App Configuration store. The information also includes whether the key-value has changed compared with what your application has already loaded. Enable logs at this level to troubleshoot your application if a configuration change didn't happen as expected. |
152
152
| Informational | Logs include the keys of configuration settings updated during a configuration refresh. Values of configuration settings are omitted from the log to avoid leaking sensitive data. You can monitor logs at this level to ensure your application picks up expected configuration changes. |
153
153
| Warning | Logs include failures and exceptions that occurred during configuration refresh. Occasional occurrences can be ignored because the configuration provider will continue using the cached data and attempt to refresh the configuration next time. You can monitor logs at this level for repetitive warnings that may indicate potential issues. For example, you rotated the connection string but forgot to update your application. |
154
-
- The logging category is `Microsoft-Extensions-Configuration-AzureAppConfiguration-Refresh`, which appears before each log.
155
-
- Here are some example logs at each event level:
154
+
155
+
You can enable logging at the `Verbose` event level by specifying the `EventLevel.Verbose` parameter, as done in the following example. These instructions apply to all other event levels as well. This example also enables logs for only the `Microsoft-Extensions-Configuration-AzureAppConfiguration-Refresh` category.
156
+
```csharp
157
+
using var listener = new AzureEventSourceListener((eventData, text) =>
158
+
{
159
+
if (eventData.EventSource.Name == "Microsoft-Extensions-Configuration-AzureAppConfiguration-Refresh")
- The logging category is `Microsoft-Extensions-Configuration-AzureAppConfiguration-Refresh`, which appears before each log. Here are some example logs at each event level:
Key-value read from App Configuration. Change:'Modified' Key:'ExampleKey' Label:'ExampleLabel' Endpoint:'https://examplestore.azconfig.io'
@@ -164,16 +174,9 @@ Logs are output upon configuration refresh and contain detailed information on k
164
174
A refresh operation failed.
165
175
Service request failed.
166
176
```
167
-
- You can enable logging at the `Verbose` event level by specifying the `EventLevel.Verbose` parameter, as done in the following example. These instructions apply to all other event levels as well. This example also enables logs for only the `Microsoft-Extensions-Configuration-AzureAppConfiguration-Refresh` category.
168
-
```csharp
169
-
using var listener = new AzureEventSourceListener((eventData, text) =>
170
-
{
171
-
if (eventData.EventSource.Name == "Microsoft-Extensions-Configuration-AzureAppConfiguration-Refresh")
0 commit comments