MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

Add an actual example of how to log in the App Service WebJobs SDK 'enable console logging' section #71174

Closed ericsampson closed 3 months ago

ericsampson commented 3 years ago

This section ends with the following text:

This update does the following:

    Disables dashboard logging. (snip)
    Adds the console provider with default filtering.

Following that, there should be a hyperlink directly to another section of the page (or inline text) that describes how to get an ILogger and call logger.XXX()

Because for people new to .NET, this is not clear.

It would also be helpful to have information on how to log (aka get access to the configured ILogger) outside of the Functions class, like in Program.cs; I think you can get one from JobHostConfiguration.LoggerFactory maybe?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

SnehaAgrawal-MSFT commented 3 years ago

@ericsampson Thanks for the feedback! We are currently investigating and will update you shortly.

AjayKumar-MSFT commented 3 years ago

ericsampso, Your feedback has been shared with the content owner for further review.

cephalin commented 3 months ago

Internal item created: https://dev.azure.com/msft-skilling/Content/_workitems/edit/288913

cephalin commented 3 months ago

Thanks for your feedback and your contribution to Azure docs.

Feedback for this repository is moving away from GitHub to a system specific to the Microsoft Learn platform. Issues for this repository will soon be disabled, and additional comments from GitHub will no longer be possible. However, we are now tracking and triaging this issue in the new feedback system.

To learn more about our feedback systems, please see Provide feedback for Microsoft Learn content.

please-close