Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More details about setting up logging (IsLoggingContentEnabled) #2383

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tymtam2
Copy link

@tymtam2 tymtam2 commented Sep 21, 2023

Added more information about setting up logging:

  1. Explicitly passing in log level
  2. Setting IsLoggingContentEnabled = true

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 17699ef:

⚠️ Validation status: warnings

File Status Preview URL Details
api/overview/azure/latest/ai.formrecognizer-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.language.conversations-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.language.questionanswering-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.metricsadvisor-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.textanalytics-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.translation.document-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/core-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/identity-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/security.confidentialledger-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/security.keyvault.administration-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/preview/ai.anomalydetector-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.contentsafety-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.formrecognizer-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.language.conversations-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.language.questionanswering-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.metricsadvisor-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.textanalytics-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.translation.document-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.translation.text-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/analytics.purview.account-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/analytics.purview.administration-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/analytics.purview.scanning-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/health.insights.cancerprofiling-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/health.insights.clinicalmatching-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/identity-readme.md ⚠️Warning View (azure-dotnet-preview) Details

This comment lists only the first 25 files in the pull request.

api/overview/azure/latest/ai.formrecognizer-readme.md

  • Line 9, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'formrecognizer'.
  • Line 61, Column 375: [Warning: bookmark-not-found] Cannot find bookmark '#create-formrecognizerclient-with-azure-active-directory-credential' in 'api/overview/azure/latest/ai.formrecognizer-readme.md'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.
  • Line 96, Column 4: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL. Otherwise, remove the view parameter. URL: /cli/azure/cognitiveservices/account?view=azure-cli-latest#az-cognitiveservices-account-show
  • Line 192, Column 1: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/dotnet/azure/sdk/unit-testing-mocking' will be broken in isolated environments. Replace with a relative link.

api/overview/azure/latest/ai.language.conversations-readme.md

  • Line 9, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'cognitivelanguage'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.
  • Line 19, Column 263: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/rest/api/language/2023-04-01/conversation-analysis-runtime' will be broken in isolated environments. Replace with a relative link.
  • Line 19, Column 330: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/rest/api/language/2023-04-01/conversational-analysis-authoring' will be broken in isolated environments. Replace with a relative link.

api/overview/azure/latest/ai.language.questionanswering-readme.md

  • Line 9, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'cognitivelanguage'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

api/overview/azure/latest/ai.metricsadvisor-readme.md

  • Line 2, Column 1: [Warning: ms-prod-and-service - See documentation] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
  • Line 9, Column 16: [Warning: ms-prod-technology-invalid - See documentation] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
  • Line 11, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'metricsadvisor'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.
  • Line 5, Column 12: [Suggestion: ms-author-invalid - See documentation] Invalid value for 'ms.author', 'ramyar' is not a valid Microsoft alias.
  • Line 24, Column 138: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/metrics-advisor' will be broken in isolated environments. Replace with a relative link.
  • Line 45, Column 15: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account' will be broken in isolated environments. Replace with a relative link.
  • Line 47, Column 15: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli' will be broken in isolated environments. Replace with a relative link.
  • Line 68, Column 101: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli' will be broken in isolated environments. Replace with a relative link.
  • Line 78, Column 30: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/cli/azure' will be broken in isolated environments. Replace with a relative link.
  • Line 122, Column 23: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal' will be broken in isolated environments. Replace with a relative link.
  • Line 122, Column 78: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal' will be broken in isolated environments. Replace with a relative link.

api/overview/azure/latest/ai.textanalytics-readme.md

  • Line 9, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'textanalytics'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request.
For more details, please refer to the build report.

Note: Links can become broken if there are changes on the target sites. If you think the validation result is a false alarm, please use SiteHelp with option 'Content authoring and publishing -> False alarm on broken link validation' to report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit cc3bbd6:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
❌Error Details

  • [Error: CannotMergeCommit] Cannot merge commit cc3bbd6de9b58fcfd672c6e4b927c7da0712b26c in branch feature/tmaj/more_about_setting_up_logging of repository https://github.com/tymtam2/azure-docs-sdk-dotnet into branch main (commit 502c97fd87dbf73b9df7c01a3c5706ef9ac3ae74). Please follow this documentation: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ to use git.exe to resolve you content conflicts locally and then push to remote.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@tymtam2 tymtam2 force-pushed the feature/tmaj/more_about_setting_up_logging branch from 0ccf464 to 999c688 Compare September 22, 2023 08:47
@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 0ccf464:

⚠️ Validation status: warnings

File Status Preview URL Details
api/overview/azure/latest/ai.formrecognizer-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.language.conversations-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.language.questionanswering-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.metricsadvisor-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.textanalytics-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/ai.translation.document-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/core-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/identity-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/security.confidentialledger-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/latest/security.keyvault.administration-readme.md ⚠️Warning View (azure-dotnet) Details
api/overview/azure/preview/ai.anomalydetector-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.contentsafety-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.formrecognizer-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.language.conversations-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.language.questionanswering-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.metricsadvisor-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.textanalytics-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.translation.document-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/ai.translation.text-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/analytics.purview.account-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/analytics.purview.administration-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/analytics.purview.scanning-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/health.insights.cancerprofiling-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/health.insights.clinicalmatching-readme.md ⚠️Warning View (azure-dotnet-preview) Details
api/overview/azure/preview/identity-readme.md ⚠️Warning View (azure-dotnet-preview) Details

This comment lists only the first 25 files in the pull request.

api/overview/azure/latest/ai.formrecognizer-readme.md

  • Line 9, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'formrecognizer'.
  • Line 61, Column 375: [Warning: bookmark-not-found] Cannot find bookmark '#create-formrecognizerclient-with-azure-active-directory-credential' in 'api/overview/azure/latest/ai.formrecognizer-readme.md'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.
  • Line 96, Column 4: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL. Otherwise, remove the view parameter. URL: /cli/azure/cognitiveservices/account?view=azure-cli-latest#az-cognitiveservices-account-show
  • Line 192, Column 1: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/dotnet/azure/sdk/unit-testing-mocking' will be broken in isolated environments. Replace with a relative link.

api/overview/azure/latest/ai.language.conversations-readme.md

  • Line 9, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'cognitivelanguage'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.
  • Line 19, Column 263: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/rest/api/language/2023-04-01/conversation-analysis-runtime' will be broken in isolated environments. Replace with a relative link.
  • Line 19, Column 330: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/rest/api/language/2023-04-01/conversational-analysis-authoring' will be broken in isolated environments. Replace with a relative link.

api/overview/azure/latest/ai.language.questionanswering-readme.md

  • Line 9, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'cognitivelanguage'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

api/overview/azure/latest/ai.metricsadvisor-readme.md

  • Line 2, Column 1: [Warning: ms-prod-and-service - See documentation] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
  • Line 9, Column 16: [Warning: ms-prod-technology-invalid - See documentation] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
  • Line 11, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'metricsadvisor'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.
  • Line 5, Column 12: [Suggestion: ms-author-invalid - See documentation] Invalid value for 'ms.author', 'ramyar' is not a valid Microsoft alias.
  • Line 24, Column 138: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/metrics-advisor' will be broken in isolated environments. Replace with a relative link.
  • Line 45, Column 15: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account' will be broken in isolated environments. Replace with a relative link.
  • Line 47, Column 15: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli' will be broken in isolated environments. Replace with a relative link.
  • Line 68, Column 101: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli' will be broken in isolated environments. Replace with a relative link.
  • Line 78, Column 30: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/cli/azure' will be broken in isolated environments. Replace with a relative link.
  • Line 122, Column 23: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal' will be broken in isolated environments. Replace with a relative link.
  • Line 122, Column 78: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal' will be broken in isolated environments. Replace with a relative link.

api/overview/azure/latest/ai.textanalytics-readme.md

  • Line 9, Column 13: [Warning: ms-service-subservice-invalid - See documentation] Invalid value for 'ms.service': 'textanalytics'.
  • Line 2, Column 1: [Suggestion: description-missing - See documentation] Missing required attribute: 'description'.

This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request.
For more details, please refer to the build report.

Note: Links can become broken if there are changes on the target sites. If you think the validation result is a false alarm, please use SiteHelp with option 'Content authoring and publishing -> False alarm on broken link validation' to report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 999c688:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
❌Error Details

  • [Error: RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant