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

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. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/fedc545ce86467b7d3413d906f1ab02fb3db12ff
15
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/c70204ae3c91d2b48fa6d9b92b62265f368421b4
10
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/c83354d42e63d2bb07e6b24b7c67ef91e434f359
9
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/54e8b61777d42d2b10744d1987438ee5b8c0b24d
9
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
9
Microsoft.AspNetCore.App
Microsoft.AspNetCore.App
9
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/954f61dd38b33caa2b736c73530bd5a294174437
9
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/d827c653b787c07de908240b7746ce34d3e6271e
8
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/ae2eabad0e49302d0632a7dde917fdc68d960dc4
8
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
8
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/417d650029c720dbd2138bcafbb78e2e4ff31bff
8
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
8
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
8
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/33c2d01092d9a1b7a583fe99a50b15686e2b7de9
8
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
8
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source at: https://github.com/aspnet/AzureIntegration/tree/494978973cbb43df739639203e765733888b49e3
8
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/979632683c720152cc04d0684644c40512f4e953
8
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/f5084525411d53b81d9950b68616117750b674d4
8
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/c2a442982e736e17ae6bcadbfd8ccba278ee1be6
8
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
7

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

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