Skip to content

AddAzureWebAppDiagnostics() depends on AddConsole(). #17844

Open
@Rick-Anderson

Description

@Rick-Anderson

Moved from dotnet/AspNetCore.Docs#16095 by @SidShetye

All extension methods referenced here are in C#, .net core 3.0 within Program.cs

It appears that removing logging.AddConsole(); breaks logging.AddAzureWebAppDiagnostics();. One would expect each logger to be independent but from our testing we found that AddAzureWebAppDiagnostics() depends on AddConsole().

Further more, going to the portal UI -> web app -> App Service logs -> Application Logging -> File System (enable) makes the AddAzureWebAppDiagnostics() redundant because linux AppService now automatically saves console logs to the webapp file system.

In addition, the documented folders are wrong on linux. There is no Application folder generated within LogFiles.

I suggest a documentation do-over on the Azure WebApp + Linux + .NET Core 3.x combination.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-very-fewThis issue impacts very few customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-azureIssues related to integration with Azure components (Azure App Service Logging, App Insights, etc.)severity-nice-to-haveThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions