Microsoft.Extensions.Logging.AzureAppServices 10.0.2

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
111
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
112
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.
109
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.
110
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.
111
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.
114
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.
115
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
109
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/7b22a279ec975335bbb0a7cbadef2e45ee15aa9c
110
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/e81033e094d4663ffd227bb4aed30b76b0631e6d
113
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/2f1db20456007c9515068a35a65afdf99af70bc6
119
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/32e8c8cae5b1a4dd752d0a42a6f8a2813f75f173
113
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/330c2397160929d6d3275ade03cee436265258e8
111
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/8ad057426fa6a27cd648b05684afddab9d97d3d9
110
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/8af96e042134fb3b2f21df26dd0f32ea1c00dd37
110
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/ae1a6cbe225b99c0bf38b7e31bf60cb653b73a52
116
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/da6e34b3e17bac8fd1f78c7e76d7ed6192514651
112
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/f6897a5bb7ca767df8eb465bf15b193c878fffbf
110

Version Downloads Last updated
10.0.2 5 01/14/2026
10.0.1 12 12/11/2025
10.0.0 29 11/12/2025
10.0.0-rc.2.25502.107 52 10/15/2025
10.0.0-rc.1.25451.107 52 09/09/2025
10.0.0-preview.7.25380.108 57 08/14/2025
10.0.0-preview.6.25358.103 75 07/16/2025
10.0.0-preview.5.25277.114 65 06/06/2025
10.0.0-preview.4.25258.110 76 05/13/2025
10.0.0-preview.3.25172.1 79 04/12/2025
10.0.0-preview.2.25164.1 77 03/30/2025
10.0.0-preview.1.25120.3 81 03/30/2025
9.0.12 5 01/13/2026
9.0.11 32 11/12/2025
9.0.10 44 10/15/2025
9.0.9 55 09/09/2025
9.0.8 55 08/05/2025
9.0.7 69 07/09/2025
9.0.6 66 06/11/2025
9.0.5 84 05/14/2025
9.0.4 93 04/10/2025
9.0.3 82 03/30/2025
9.0.2 78 03/30/2025
9.0.1 85 03/30/2025
9.0.0 85 11/14/2024
9.0.0-rc.2.24474.3 87 10/21/2024
9.0.0-rc.1.24452.1 94 10/20/2024
9.0.0-preview.7.24406.2 82 08/21/2024
9.0.0-preview.6.24328.4 117 07/20/2024
9.0.0-preview.5.24306.11 96 07/20/2024
9.0.0-preview.4.24267.6 99 07/20/2024
9.0.0-preview.3.24172.13 94 07/20/2024
9.0.0-preview.2.24128.4 94 07/20/2024
9.0.0-preview.1.24081.5 113 07/20/2024
8.0.23 4 01/14/2026
8.0.22 29 11/12/2025
8.0.21 41 10/15/2025
8.0.20 53 09/09/2025
8.0.19 62 08/05/2025
8.0.18 65 07/09/2025
8.0.17 62 06/11/2025
8.0.16 73 05/14/2025
8.0.15 74 04/10/2025
8.0.14 79 03/29/2025
8.0.13 86 03/29/2025
8.0.12 81 03/29/2025
8.0.11 82 11/14/2024
8.0.10 92 10/22/2024
8.0.8 89 08/21/2024
8.0.7 120 07/20/2024
8.0.6 91 07/20/2024
8.0.5 102 07/20/2024
8.0.4 87 07/20/2024
8.0.3 90 07/20/2024
8.0.2 96 07/20/2024
8.0.1 99 07/20/2024
8.0.0 103 07/20/2024
8.0.0-rc.2.23480.2 86 07/20/2024
8.0.0-rc.1.23421.29 84 07/20/2024
8.0.0-preview.7.23375.9 98 07/20/2024
8.0.0-preview.6.23329.11 104 07/20/2024
8.0.0-preview.5.23302.2 99 07/20/2024
8.0.0-preview.4.23260.4 105 07/20/2024
8.0.0-preview.3.23177.8 94 07/20/2024
8.0.0-preview.2.23153.2 96 07/20/2024
8.0.0-preview.1.23112.2 94 07/20/2024
7.0.20 94 07/20/2024
7.0.19 105 07/20/2024
7.0.18 98 07/20/2024
7.0.17 100 07/20/2024
7.0.16 96 07/20/2024
7.0.15 100 07/20/2024
7.0.14 95 07/20/2024
7.0.13 99 07/20/2024
7.0.12 101 07/20/2024
7.0.11 114 07/20/2024
7.0.10 102 07/20/2024
7.0.9 87 07/20/2024
7.0.8 95 07/20/2024
7.0.7 93 07/20/2024
7.0.5 97 07/20/2024
7.0.4 100 07/20/2024
7.0.3 100 07/20/2024
7.0.2 102 07/20/2024
7.0.1 105 07/20/2024
7.0.0 85 07/20/2024
7.0.0-rc.2.22476.2 94 07/20/2024
7.0.0-rc.1.22427.2 105 07/20/2024
7.0.0-preview.7.22376.6 96 07/20/2024
7.0.0-preview.6.22330.3 101 07/20/2024
7.0.0-preview.5.22303.8 87 07/20/2024
7.0.0-preview.4.22251.1 87 07/20/2024
7.0.0-preview.3.22178.4 97 07/20/2024
7.0.0-preview.2.22153.2 100 07/20/2024
7.0.0-preview.1.22109.13 94 07/20/2024
6.0.36 88 11/14/2024
6.0.35 81 10/22/2024
6.0.33 91 08/21/2024
6.0.32 92 07/20/2024
6.0.31 107 07/20/2024
6.0.30 94 07/20/2024
6.0.29 88 07/20/2024
6.0.28 92 07/20/2024
6.0.27 100 07/20/2024
6.0.26 92 07/20/2024
6.0.25 88 07/20/2024
6.0.24 102 07/20/2024
6.0.23 94 07/20/2024
6.0.22 87 07/20/2024
6.0.21 98 07/20/2024
6.0.20 106 07/20/2024
6.0.19 84 07/20/2024
6.0.18 112 07/20/2024
6.0.16 97 07/20/2024
6.0.15 81 07/20/2024
6.0.14 102 07/20/2024
6.0.13 92 07/20/2024
6.0.12 82 07/20/2024
6.0.11 98 07/20/2024
6.0.10 111 07/20/2024
6.0.9 107 07/20/2024
6.0.8 110 07/20/2024
6.0.7 87 07/20/2024
6.0.6 110 07/20/2024
6.0.5 91 07/20/2024
6.0.4 109 07/20/2024
6.0.3 107 07/20/2024
6.0.2 90 07/20/2024
6.0.1 106 07/20/2024
6.0.0 95 07/20/2024
6.0.0-rc.2.21480.10 93 07/20/2024
6.0.0-rc.1.21452.15 91 07/20/2024
6.0.0-preview.7.21378.6 102 07/20/2024
6.0.0-preview.6.21355.2 85 07/20/2024
6.0.0-preview.5.21301.17 97 07/20/2024
6.0.0-preview.4.21253.5 90 07/20/2024
6.0.0-preview.3.21201.13 88 07/20/2024
6.0.0-preview.2.21154.6 99 07/20/2024
6.0.0-preview.1.21103.6 105 07/20/2024
5.0.17 110 07/20/2024
5.0.16 104 07/20/2024
5.0.15 96 07/20/2024
5.0.14 89 07/20/2024
5.0.13 101 07/20/2024
5.0.12 108 07/20/2024
5.0.11 100 07/20/2024
5.0.10 100 07/20/2024
5.0.9 109 07/20/2024
5.0.8 98 07/20/2024
5.0.7 94 07/20/2024
5.0.6 111 07/20/2024
5.0.5 98 07/20/2024
5.0.4 90 07/20/2024
5.0.3 103 07/20/2024
5.0.2 106 07/20/2024
5.0.1 96 07/20/2024
5.0.0 113 07/20/2024
5.0.0-rc.2.20475.17 94 07/20/2024
5.0.0-rc.1.20451.17 99 07/20/2024
5.0.0-preview.8.20414.8 103 07/20/2024
5.0.0-preview.7.20365.19 92 07/20/2024
5.0.0-preview.6.20312.15 87 07/20/2024
5.0.0-preview.5.20279.2 87 07/20/2024
5.0.0-preview.4.20257.10 92 07/20/2024
5.0.0-preview.3.20215.2 95 07/20/2024
5.0.0-preview.2.20160.3 87 07/20/2024
5.0.0-preview.1.20120.4 95 07/20/2024
3.1.32 112 07/20/2024
3.1.31 85 07/20/2024
3.1.30 95 07/20/2024
3.1.29 99 07/20/2024
3.1.28 87 07/20/2024
3.1.27 88 07/20/2024
3.1.26 83 07/20/2024
3.1.25 90 07/20/2024
3.1.24 89 07/20/2024
3.1.23 108 07/20/2024
3.1.22 83 07/20/2024
3.1.21 103 07/20/2024
3.1.20 86 07/20/2024
3.1.19 89 07/20/2024
3.1.18 92 07/20/2024
3.1.17 99 07/20/2024
3.1.16 89 07/20/2024
3.1.15 105 07/20/2024
3.1.14 99 07/20/2024
3.1.13 94 07/20/2024
3.1.12 82 07/20/2024
3.1.11 90 07/20/2024
3.1.10 100 07/20/2024
3.1.9 82 07/20/2024
3.1.8 93 07/20/2024
3.1.7 107 07/20/2024
3.1.6 93 07/20/2024
3.1.5 88 07/20/2024
3.1.4 101 07/20/2024
3.1.3 99 07/20/2024
3.1.2 97 07/20/2024
3.1.1 86 07/20/2024
3.1.0 95 07/20/2024
3.1.0-preview3.19553.2 106 07/20/2024
3.1.0-preview2.19525.4 94 07/20/2024
3.1.0-preview1.19506.1 101 07/20/2024
3.0.3 86 07/20/2024
3.0.2 94 07/20/2024
3.0.1 90 07/20/2024
3.0.0 99 07/20/2024
3.0.0-rc1.19456.10 88 07/20/2024
3.0.0-preview9.19423.4 97 07/20/2024
3.0.0-preview8.19405.4 94 07/20/2024
3.0.0-preview7.19362.4 102 07/20/2024
3.0.0-preview6.19304.6 98 07/20/2024
3.0.0-preview5.19227.9 96 07/20/2024
3.0.0-preview4.19216.2 95 07/20/2024
3.0.0-preview3.19153.1 103 07/20/2024
3.0.0-preview.19074.2 100 07/20/2024
3.0.0-preview.18572.1 93 07/20/2024
2.2.5 109 07/20/2024
2.2.0 85 07/20/2024
2.2.0-preview3-35497 89 07/20/2024
2.2.0-preview2-35157 96 07/20/2024
2.2.0-preview1-35029 92 07/20/2024
2.1.1 94 07/20/2024
2.1.0 83 07/20/2024
2.1.0-rc1-final 101 07/20/2024
2.1.0-preview2-final 81 07/20/2024
2.1.0-preview1-final 102 07/20/2024
2.0.2 101 07/20/2024
2.0.1 94 07/20/2024
2.0.0 86 07/20/2024
2.0.0-preview2-final 86 07/20/2024
2.0.0-preview1-final 103 07/20/2024
1.0.2 104 07/20/2024
1.0.1 97 07/20/2024
1.0.0 101 07/20/2024
1.0.0-preview1-final 98 07/20/2024