File tree 5 files changed +26
-19
lines changed
5 files changed +26
-19
lines changed Original file line number Diff line number Diff line change @@ -331,11 +331,11 @@ using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsole
331
331
332
332
To learn more about other logging mechanisms see [ here] [ core_logging ] .
333
333
334
- #### Loggging request and response content
334
+ #### Logging request and response content
335
335
336
- To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client.
336
+ To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client and set the log level to verbose.
337
337
338
- ```
338
+ ``` C#
339
339
QuestionAnsweringClientOptions options = new ()
340
340
{
341
341
Diagnostics =
@@ -345,6 +345,8 @@ QuestionAnsweringClientOptions options = new()
345
345
};
346
346
347
347
QuestionAnsweringClient client = new (endpoint , credential , options );
348
+
349
+ using AzureEventSourceListener listener = AzureEventSourceListener .CreateTraceLogger (level : EventLevel .Verbose );
348
350
```
349
351
350
352
## Next steps
Original file line number Diff line number Diff line change @@ -763,12 +763,11 @@ using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsole
763
763
764
764
To learn more about other logging mechanisms see [ here] [ logging ] .
765
765
766
- #### Loggging request and response content
766
+ #### Logging request and response content
767
767
768
- To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client.
768
+ To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client and set the log level to verbose.
769
769
770
-
771
- ```
770
+ ``` C#
772
771
TextAnalyticsClientOptions options = new ()
773
772
{
774
773
Diagnostics =
@@ -778,6 +777,8 @@ TextAnalyticsClientOptions options = new()
778
777
};
779
778
780
779
TextAnalyticsClient client = new (endpoint , credential , options );
780
+
781
+ using AzureEventSourceListener listener = AzureEventSourceListener .CreateTraceLogger (level : EventLevel .Verbose );
781
782
```
782
783
783
784
## Next steps
Original file line number Diff line number Diff line change @@ -368,12 +368,12 @@ using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsole
368
368
369
369
To learn more about other logging mechanisms see [ Diagnostics Samples] [ logging ] .
370
370
371
- #### Loggging request and response content
371
+ #### Logging request and response content
372
372
373
- To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client.
373
+ To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client and set the log level to verbose.
374
374
375
- ```
376
- ContentSafetyClientOptions options = new ()
375
+ ``` C#
376
+ ContentSafetyClientOptions options = new ()
377
377
{
378
378
Diagnostics =
379
379
{
@@ -382,6 +382,8 @@ ContentSafetyClientOptions options = new ()
382
382
};
383
383
384
384
ContentSafetyClient client = new (endpoint , credential , options );
385
+
386
+ using AzureEventSourceListener listener = AzureEventSourceListener .CreateTraceLogger (level : EventLevel .Verbose );
385
387
```
386
388
387
389
## Next steps
Original file line number Diff line number Diff line change @@ -289,11 +289,11 @@ using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsole
289
289
290
290
To learn more about other logging mechanisms see [ here] [ core_logging ] .
291
291
292
- #### Loggging request and response content
292
+ #### Logging request and response content
293
293
294
- To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client.
294
+ To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client and set the log level to verbose.
295
295
296
- ```
296
+ ``` C#
297
297
QuestionAnsweringClientOptions options = new ()
298
298
{
299
299
Diagnostics =
@@ -303,6 +303,8 @@ QuestionAnsweringClientOptions options = new()
303
303
};
304
304
305
305
QuestionAnsweringClient client = new (endpoint , credential , options );
306
+
307
+ using AzureEventSourceListener listener = AzureEventSourceListener .CreateTraceLogger (level : EventLevel .Verbose );
306
308
```
307
309
308
310
## Next steps
Original file line number Diff line number Diff line change @@ -753,12 +753,11 @@ using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsole
753
753
754
754
To learn more about other logging mechanisms see [ here] [ logging ] .
755
755
756
- #### Loggging request and response content
756
+ #### Logging request and response content
757
757
758
- To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client.
758
+ To log the content of requests and responses set ` IsLoggingContentEnabled ` to true when creating the client and set the log level to verbose.
759
759
760
-
761
- ```
760
+ ``` C#
762
761
TextAnalyticsClientOptions options = new ()
763
762
{
764
763
Diagnostics =
@@ -768,6 +767,8 @@ TextAnalyticsClientOptions options = new()
768
767
};
769
768
770
769
TextAnalyticsClient client = new (endpoint , credential , options );
770
+
771
+ using AzureEventSourceListener listener = AzureEventSourceListener .CreateTraceLogger (level : EventLevel .Verbose );
771
772
```
772
773
773
774
## Next steps
@@ -870,4 +871,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con
870
871
[ code_of_conduct ] : https://opensource.microsoft.com/codeofconduct/
871
872
[ coc_faq ] : https://opensource.microsoft.com/codeofconduct/faq/
872
873
[ coc_contact ] : mailto:opencode@microsoft.com
873
-
You can’t perform that action at this time.
0 commit comments