Microsoft.Extensions.Logging.AzureAppServices 10.0.0-preview.4.25258.110

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.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
34
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
37
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
39
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/2b7e994b8a304700a09617ffc5052f0d943bbcba
55
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/4768f164d522e128f91827810527730f7468fd74
35
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/865acae3e95d5ade51b66ea578ba9d7764d562ba
35
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/c04846dc66cc97f71d83a83a15437828435f5d44
38
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
41
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/fbe05294ac5c88be848b4d57d60cb2657874da9b
36
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/aspnet/AzureIntegration/tree/031a2ed214529194d95d8deed50287760163ffae
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/2aa401550574f93402eba13ff9a4827ef01a2f3a
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/330c2397160929d6d3275ade03cee436265258e8
38
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
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/718171eeb4bd236ab4f0d9b1ecd97ecc63ec0be1
39
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/8e941eb42f819adb116b881195158b3887a70a1c
37
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/bc25dd5d39fd057f7cb28acb5ad4d9e925a375de
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/be51b1aa73343e45a1d00afd436abad794f471fb
37
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/c967158b960823ccfcb19f1ef56426e2fd38eb3f
38
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/e5f183b656a0e8bc087108130a5a9b54ae94494e
35
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source at: https://github.com/aspnet/AzureIntegration/tree/cfa66d7c8e93e267d248aa868918ff3d72685824
35

.NET Framework 4.6.2

.NET Standard 2.0

.NET 10.0

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