Application diagnostics

This type of logging is used to write application-level logging. It is classified into the following two types of logs:

Application logging (Filesystem)

This is used to log application-level logging on a text file. While configuring, we can set the logging severity level and it logs the error into a text file.

Application logging (Blob)

To log application-level logging on Blob storage, we can set the minimum severity level.

Azure application-level logging can be enabled in ASP.NET Core by adding a package, Microsoft.Extensions.Logging.AzureAppServices, through NuGet, and then calling the AddAzureWebAppDiagnostics method from loggerFactory, as follows:

    public void Configure(IApplicationBuilder app,  IHostingEnvironment ...

Get Enterprise Application Architecture with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.