Microsoft.Extensions.Logging.AzureAppServices 10.0.0

About

Microsoft.Extensions.Logging.AzureAppServices provides a logger implementation that logs to text files in an Azure App Service app's file system and to blob storage in an Azure Storage account.

Key Features

  • Loging messages with the "Diagnostics Logger" and "Log Streaming" features of Azure App Service
  • Integration with Azure App Service logging infrastructure
  • Seamless integration with other components of Microsoft.Extensions.Logging

How to Use

To use Microsoft.Extensions.Logging.AzureAppServices, follow these steps:

Installation

dotnet add package Microsoft.Extensions.Logging.AzureAppServices

Configuration

To configure provider settings, use AzureFileLoggerOptions and AzureBlobLoggerOptions, as shown in the following example:

using Microsoft.Extensions.Logging.AzureAppServices;

var builder = WebApplication.CreateBuilder();
builder.Logging.AddAzureWebAppDiagnostics();
builder.Services.Configure<AzureFileLoggerOptions>(options =>
{
    options.FileName = "azure-diagnostics-";
    options.FileSizeLimit = 50 * 1024;
    options.RetainedFileCountLimit = 5;
});
builder.Services.Configure<AzureBlobLoggerOptions>(options =>
{
    options.BlobName = "log.txt";
});

Main Types

  • FileLoggerProvider: A BatchingLoggerProvider which writes out to a file
  • BlobLoggerProvider: The ILoggerProvider implementation that stores messages by appending them to Azure Blob in batches
  • AzureFileLoggerOptions: Options for configuring Azure diagnostics file logging
  • AzureBlobLoggerOptions: Options for configuring Azure diagnostics blob logging

Additional Documentation

For additional documentation and examples, refer to the official documentation on logging with ASP.NEt Core and Azure App Service.

Feedback & Contributing

Microsoft.Extensions.Logging.AzureAppServices is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.Extensions.Logging.AzureAppServices.

Packages Downloads
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
29
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
30
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
30
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
33
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
34
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
35
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
29
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/561deb05ae2d6680206e3d4a6bc75de699585980
34
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/d1fa2cb155ab9226f20b87ab0d7a1eb16b8a8b69
34
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/50b7e9c661453874aa7a54a3985d5120564bb2e5
29
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/54142bcb25544b72fac28b1b061e7788c91c4f49
30
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/5a007deadbb2636caff4656333cafc818b6b2ef6
30
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/67acc3d331454956fc06d6de2218a625e3e596f8
34
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/6a6d775f49623bbd742c02f89d373630668547bb
31
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/70048beee894074e9718206a0017d9b080ee66ff
29
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/bb01bbf4433e27289b99001b7de6a582879d1835
30
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/cb14812a5c6098bd1091f5b7fd471ce2be45e8dd
30
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/fc93e595ceffbb1e3e85532bf454e92a6a80dd6b
29

Version Downloads Last updated
10.0.0 4 11/13/2025
10.0.0-rc.2.25502.107 10 10/15/2025
10.0.0-rc.1.25451.107 10 09/10/2025
10.0.0-preview.7.25380.108 9 08/13/2025
10.0.0-preview.6.25358.103 13 07/16/2025
10.0.0-preview.5.25277.114 13 06/08/2025
10.0.0-preview.4.25258.110 23 05/16/2025
10.0.0-preview.3.25172.1 16 04/24/2025
10.0.0-preview.2.25164.1 15 03/26/2025
10.0.0-preview.1.25120.3 20 03/10/2025
9.0.11 4 11/14/2025
9.0.10 7 10/16/2025
9.0.9 11 09/11/2025
9.0.8 11 08/07/2025
9.0.7 13 07/09/2025
9.0.6 16 06/12/2025
9.0.5 17 05/17/2025
9.0.4 15 04/10/2025
9.0.3 16 03/23/2025
9.0.2 18 03/09/2025
9.0.1 19 01/23/2025
9.0.0 23 11/14/2024
9.0.0-rc.2.24474.3 24 11/14/2024
9.0.0-rc.1.24452.1 20 11/14/2024
9.0.0-preview.7.24406.2 25 11/14/2024
9.0.0-preview.6.24328.4 21 11/14/2024
9.0.0-preview.5.24306.11 20 11/14/2024
9.0.0-preview.4.24267.6 22 11/14/2024
9.0.0-preview.3.24172.13 33 05/10/2024
9.0.0-preview.2.24128.4 21 11/14/2024
9.0.0-preview.1.24081.5 28 12/08/2024
8.0.22 4 11/13/2025
8.0.21 7 10/16/2025
8.0.20 7 09/13/2025
8.0.19 9 08/07/2025
8.0.18 11 07/09/2025
8.0.17 16 06/12/2025
8.0.16 21 05/16/2025
8.0.15 18 04/10/2025
8.0.14 18 03/21/2025
8.0.13 19 03/09/2025
8.0.12 21 01/28/2025
8.0.11 27 11/14/2024
8.0.10 26 12/17/2024
8.0.8 21 12/10/2024
8.0.7 23 11/14/2024
8.0.6 22 11/14/2024
8.0.5 24 11/14/2024
8.0.4 26 11/14/2024
8.0.3 30 12/06/2024
8.0.2 25 11/14/2024
8.0.1 18 11/14/2024
8.0.0 28 05/17/2024
8.0.0-rc.2.23480.2 25 11/14/2024
8.0.0-rc.1.23421.29 19 11/14/2024
8.0.0-preview.7.23375.9 27 05/10/2024
8.0.0-preview.6.23329.11 24 11/14/2024
8.0.0-preview.5.23302.2 21 11/14/2024
8.0.0-preview.4.23260.4 23 11/14/2024
8.0.0-preview.3.23177.8 22 11/14/2024
8.0.0-preview.2.23153.2 28 05/10/2024
8.0.0-preview.1.23112.2 21 11/14/2024
7.0.20 25 11/14/2024
7.0.19 24 11/14/2024
7.0.18 30 05/10/2024
7.0.17 23 11/14/2024
7.0.16 25 12/06/2024
7.0.15 25 11/14/2024
7.0.14 25 05/19/2024
7.0.13 27 11/14/2024
7.0.12 22 11/14/2024
7.0.11 25 11/14/2024
7.0.10 28 05/10/2024
7.0.9 20 11/14/2024
7.0.8 31 05/10/2024
7.0.7 22 11/14/2024
7.0.5 24 11/14/2024
7.0.4 21 12/08/2024
7.0.3 26 11/14/2024
7.0.2 35 05/21/2024
7.0.1 22 12/08/2024
7.0.0 21 12/04/2024
7.0.0-rc.2.22476.2 20 11/14/2024
7.0.0-rc.1.22427.2 26 11/14/2024
7.0.0-preview.7.22376.6 20 11/14/2024
7.0.0-preview.6.22330.3 18 11/14/2024
7.0.0-preview.5.22303.8 22 11/14/2024
7.0.0-preview.4.22251.1 19 11/14/2024
7.0.0-preview.3.22178.4 23 11/14/2024
7.0.0-preview.2.22153.2 19 11/14/2024
7.0.0-preview.1.22109.13 20 11/14/2024
6.0.36 26 11/14/2024
6.0.35 22 11/14/2024
6.0.33 24 11/14/2024
6.0.32 24 11/14/2024
6.0.31 22 11/14/2024
6.0.30 33 05/18/2024
6.0.29 21 11/14/2024
6.0.28 32 05/14/2024
6.0.27 27 11/14/2024
6.0.26 25 11/14/2024
6.0.25 33 05/10/2024
6.0.24 28 11/14/2024
6.0.23 26 11/14/2024
6.0.22 23 11/14/2024
6.0.21 21 11/14/2024
6.0.20 25 05/10/2024
6.0.19 22 11/14/2024
6.0.18 21 11/14/2024
6.0.16 22 11/14/2024
6.0.15 27 05/10/2024
6.0.14 21 11/14/2024
6.0.13 35 11/14/2024
6.0.12 32 05/15/2024
6.0.11 30 11/14/2024
6.0.10 36 05/10/2024
6.0.9 33 05/10/2024
6.0.8 23 11/14/2024
6.0.7 23 11/14/2024
6.0.6 26 05/30/2024
6.0.5 22 11/14/2024
6.0.4 19 11/14/2024
6.0.3 21 11/14/2024
6.0.2 26 05/29/2024
6.0.1 22 11/14/2024
6.0.0 31 05/18/2024
6.0.0-rc.2.21480.10 21 11/14/2024
6.0.0-rc.1.21452.15 19 11/14/2024
6.0.0-preview.7.21378.6 22 11/14/2024
6.0.0-preview.6.21355.2 22 05/18/2024
6.0.0-preview.5.21301.17 17 11/14/2024
6.0.0-preview.4.21253.5 22 11/14/2024
6.0.0-preview.3.21201.13 20 11/14/2024
6.0.0-preview.2.21154.6 21 11/14/2024
6.0.0-preview.1.21103.6 19 11/14/2024
5.0.17 22 11/14/2024
5.0.16 25 11/14/2024
5.0.15 21 12/08/2024
5.0.14 25 11/14/2024
5.0.13 24 11/14/2024
5.0.12 22 12/12/2024
5.0.11 28 11/14/2024
5.0.10 24 12/09/2024
5.0.9 25 11/14/2024
5.0.8 28 11/14/2024
5.0.7 29 05/16/2024
5.0.6 19 11/14/2024
5.0.5 25 05/26/2024
5.0.4 30 05/10/2024
5.0.3 20 11/14/2024
5.0.2 30 05/15/2024
5.0.1 24 11/14/2024
5.0.0 23 11/14/2024
5.0.0-rc.2.20475.17 26 11/14/2024
5.0.0-rc.1.20451.17 25 11/14/2024
5.0.0-preview.8.20414.8 23 11/14/2024
5.0.0-preview.7.20365.19 21 12/08/2024
5.0.0-preview.6.20312.15 19 11/14/2024
5.0.0-preview.5.20279.2 27 05/10/2024
5.0.0-preview.4.20257.10 26 11/14/2024
5.0.0-preview.3.20215.2 25 11/14/2024
5.0.0-preview.2.20160.3 18 12/04/2024
5.0.0-preview.1.20120.4 22 11/14/2024
3.1.32 21 12/12/2024
3.1.31 20 11/14/2024
3.1.30 19 11/14/2024
3.1.29 20 11/14/2024
3.1.28 23 11/14/2024
3.1.27 23 11/14/2024
3.1.26 24 11/14/2024
3.1.25 26 11/14/2024
3.1.24 27 11/14/2024
3.1.23 24 11/14/2024
3.1.22 26 11/14/2024
3.1.21 26 11/14/2024
3.1.20 22 11/14/2024
3.1.19 23 11/14/2024
3.1.18 23 11/14/2024
3.1.17 31 05/10/2024
3.1.16 31 05/10/2024
3.1.15 21 11/14/2024
3.1.14 26 05/18/2024
3.1.13 27 12/12/2024
3.1.12 27 05/19/2024
3.1.11 22 11/14/2024
3.1.10 21 11/14/2024
3.1.9 24 11/14/2024
3.1.8 25 11/14/2024
3.1.7 23 11/14/2024
3.1.6 22 11/14/2024
3.1.5 17 11/14/2024
3.1.4 26 11/14/2024
3.1.3 25 11/14/2024
3.1.2 24 11/14/2024
3.1.1 19 11/14/2024
3.1.0 30 05/23/2024
3.1.0-preview3.19553.2 26 11/14/2024
3.1.0-preview2.19525.4 25 11/14/2024
3.1.0-preview1.19506.1 19 11/14/2024
3.0.3 24 11/14/2024
3.0.2 34 05/16/2024
3.0.1 25 11/14/2024
3.0.0 19 11/14/2024
3.0.0-rc1.19456.10 18 11/14/2024
3.0.0-preview9.19423.4 24 05/24/2024
3.0.0-preview8.19405.4 27 05/10/2024
3.0.0-preview7.19362.4 23 11/14/2024
3.0.0-preview6.19304.6 23 11/14/2024
3.0.0-preview5.19227.9 32 05/18/2024
3.0.0-preview4.19216.2 27 05/10/2024
3.0.0-preview3.19153.1 25 11/14/2024
3.0.0-preview.19074.2 22 11/14/2024
3.0.0-preview.18572.1 19 11/14/2024
2.2.5 20 11/14/2024
2.2.0 21 11/01/2024
2.2.0-preview3-35497 25 11/14/2024
2.2.0-preview2-35157 23 11/14/2024
2.2.0-preview1-35029 26 11/14/2024
2.1.1 27 11/14/2024
2.1.0 23 11/14/2024
2.1.0-rc1-final 24 11/14/2024
2.1.0-preview2-final 22 11/14/2024
2.1.0-preview1-final 25 11/14/2024
2.0.2 29 05/10/2024
2.0.1 24 12/08/2024
2.0.0 19 11/14/2024
2.0.0-preview2-final 21 11/14/2024
2.0.0-preview1-final 19 11/14/2024
1.0.2 23 11/14/2024
1.0.1 24 11/14/2024
1.0.0 25 11/14/2024
1.0.0-preview1-final 23 11/14/2024