Microsoft.Extensions.Logging.AzureAppServices 11.0.0-preview.3.26207.106

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.
18
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/0a2e366eaf4d29b24b9a98e5782a04bef573189e
18
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/331b52b370cd4e7fe2919d4d4cda27412e2ab1cc
16
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
16
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/458d97420a173fe87487b58ec4aa47a4c9dc4710
16
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/8ca3954ca335343ce6dd1d14d8d1c6c3369710b7
16
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/9699b939f94b7524a178821d78addefa5af5d750
17
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/c3acdcac86dad91c3d3fbc3b93ecc6b7ba494bdc
16
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/cf2c5c9c6dca430b97aa96429b84d0da07eb77f1
16
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/1dcf7acfacf0fe154adcc23270cb0da11ff44ace
16
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
16
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
16
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
16
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/827b96040e62e5aa47d829bfa61c000d315d4f2e
17
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
24
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/af22effae4069a5dfb9b0735859de48820104f5b
17
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
16
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/d6f154cca3863703cf87c8b840eea9cbe20229b2
16
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/e882394a7bb38930da748291fe2c2ceaa6a80588
16
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/ecdcc752d4639061c2c49727ee77a1039bbbca22
23

.NET Framework 4.6.2

.NET 11.0

.NET Standard 2.0

Version Downloads Last updated
11.0.0-preview.3.26207.106 1 27.04.2026
11.0.0-preview.2.26159.112 3 15.03.2026
11.0.0-preview.1.26104.118 3 12.02.2026
10.0.7 1 27.04.2026
10.0.6 1 27.04.2026
10.0.5 3 14.03.2026
10.0.4 3 14.03.2026
10.0.3 3 12.02.2026
10.0.2 4 22.01.2026
10.0.1 4 18.12.2025
10.0.0 6 17.11.2025
10.0.0-rc.2.25502.107 7 29.11.2025
10.0.0-rc.1.25451.107 6 21.11.2025
10.0.0-preview.7.25380.108 7 22.08.2025
10.0.0-preview.6.25358.103 6 08.08.2025
10.0.0-preview.5.25277.114 8 12.06.2025
10.0.0-preview.4.25258.110 8 12.06.2025
10.0.0-preview.3.25172.1 8 11.06.2025
10.0.0-preview.2.25164.1 12 26.03.2025
10.0.0-preview.1.25120.3 12 13.03.2025
9.0.15 1 27.04.2026
9.0.14 3 14.03.2026
9.0.13 3 12.02.2026
9.0.12 4 22.01.2026
9.0.11 5 18.11.2025
9.0.10 8 25.10.2025
9.0.9 9 16.09.2025
9.0.8 11 21.08.2025
9.0.7 10 05.08.2025
9.0.6 11 05.08.2025
9.0.5 11 10.06.2025
9.0.4 14 10.06.2025
9.0.3 14 12.03.2025
9.0.2 15 26.03.2025
9.0.1 17 29.01.2025
9.0.0 15 01.02.2025
9.0.0-rc.2.24474.3 12 17.02.2025
9.0.0-rc.1.24452.1 13 30.01.2025
9.0.0-preview.7.24406.2 12 01.02.2025
9.0.0-preview.6.24328.4 14 31.01.2025
9.0.0-preview.5.24306.11 11 31.01.2025
9.0.0-preview.4.24267.6 11 01.02.2025
9.0.0-preview.3.24172.13 13 31.01.2025
9.0.0-preview.2.24128.4 12 08.02.2025
9.0.0-preview.1.24081.5 12 31.01.2025
8.0.26 1 27.04.2026
8.0.25 3 14.03.2026
8.0.24 3 12.02.2026
8.0.23 4 22.01.2026
8.0.22 6 18.11.2025
8.0.21 7 25.10.2025
8.0.20 11 16.09.2025
8.0.19 10 21.08.2025
8.0.18 9 05.08.2025
8.0.17 11 05.08.2025
8.0.16 11 10.06.2025
8.0.15 13 10.06.2025
8.0.14 15 12.03.2025
8.0.13 19 20.02.2025
8.0.12 17 31.01.2025
8.0.11 16 31.01.2025
8.0.10 16 31.01.2025
8.0.8 15 01.02.2025
8.0.7 17 05.02.2025
8.0.6 16 31.01.2025
8.0.5 18 04.02.2025
8.0.4 15 31.01.2025
8.0.3 15 31.01.2025
8.0.2 16 31.01.2025
8.0.1 16 06.02.2025
8.0.0 17 31.01.2025
8.0.0-rc.2.23480.2 14 31.01.2025
8.0.0-rc.1.23421.29 14 08.02.2025
8.0.0-preview.7.23375.9 12 31.01.2025
8.0.0-preview.6.23329.11 13 31.01.2025
8.0.0-preview.5.23302.2 13 06.02.2025
8.0.0-preview.4.23260.4 11 31.01.2025
8.0.0-preview.3.23177.8 11 31.01.2025
8.0.0-preview.2.23153.2 13 01.02.2025
8.0.0-preview.1.23112.2 11 31.01.2025
7.0.20 16 31.01.2025
7.0.19 18 31.01.2025
7.0.18 17 31.01.2025
7.0.17 17 31.01.2025
7.0.16 17 31.01.2025
7.0.15 16 31.01.2025
7.0.14 17 31.01.2025
7.0.13 17 31.01.2025
7.0.12 16 31.01.2025
7.0.11 17 31.01.2025
7.0.10 16 31.01.2025
7.0.9 15 31.01.2025
7.0.8 16 31.01.2025
7.0.7 15 31.01.2025
7.0.5 15 31.01.2025
7.0.4 18 31.01.2025
7.0.3 15 01.02.2025
7.0.2 16 01.02.2025
7.0.1 17 08.02.2025
7.0.0 15 31.01.2025
7.0.0-rc.2.22476.2 13 03.02.2025
7.0.0-rc.1.22427.2 14 31.01.2025
7.0.0-preview.7.22376.6 12 31.01.2025
7.0.0-preview.6.22330.3 12 31.01.2025
7.0.0-preview.5.22303.8 13 05.02.2025
7.0.0-preview.4.22251.1 13 31.01.2025
7.0.0-preview.3.22178.4 13 31.01.2025
7.0.0-preview.2.22153.2 11 01.02.2025
7.0.0-preview.1.22109.13 13 31.01.2025
6.0.36 18 31.01.2025
6.0.35 17 31.01.2025
6.0.33 16 01.02.2025
6.0.32 17 31.01.2025
6.0.31 19 31.01.2025
6.0.30 18 31.01.2025
6.0.29 16 01.02.2025
6.0.28 16 31.01.2025
6.0.27 17 31.01.2025
6.0.26 16 31.01.2025
6.0.25 16 31.01.2025
6.0.24 17 31.01.2025
6.0.23 16 31.01.2025
6.0.22 17 01.02.2025
6.0.21 18 31.01.2025
6.0.20 18 31.01.2025
6.0.19 16 31.01.2025
6.0.18 16 31.01.2025
6.0.16 16 31.01.2025
6.0.15 17 31.01.2025
6.0.14 16 31.01.2025
6.0.13 17 31.01.2025
6.0.12 17 31.01.2025
6.0.11 16 31.01.2025
6.0.10 17 31.01.2025
6.0.9 15 31.01.2025
6.0.8 15 31.01.2025
6.0.7 15 31.01.2025
6.0.6 16 31.01.2025
6.0.5 17 04.02.2025
6.0.4 15 31.01.2025
6.0.3 15 31.01.2025
6.0.2 16 31.01.2025
6.0.1 15 31.01.2025
6.0.0 17 31.01.2025
6.0.0-rc.2.21480.10 12 31.01.2025
6.0.0-rc.1.21452.15 12 06.02.2025
6.0.0-preview.7.21378.6 12 31.01.2025
6.0.0-preview.6.21355.2 12 31.01.2025
6.0.0-preview.5.21301.17 11 03.02.2025
6.0.0-preview.4.21253.5 11 31.01.2025
6.0.0-preview.3.21201.13 12 31.01.2025
6.0.0-preview.2.21154.6 14 31.01.2025
6.0.0-preview.1.21103.6 11 31.01.2025
5.0.17 17 01.02.2025
5.0.16 16 31.01.2025
5.0.15 18 31.01.2025
5.0.14 17 31.01.2025
5.0.13 18 31.01.2025
5.0.12 17 31.01.2025
5.0.11 18 31.01.2025
5.0.10 16 05.02.2025
5.0.9 15 31.01.2025
5.0.8 15 31.01.2025
5.0.7 16 31.01.2025
5.0.6 15 31.01.2025
5.0.5 15 31.01.2025
5.0.4 15 31.01.2025
5.0.3 16 31.01.2025
5.0.2 16 31.01.2025
5.0.1 15 31.01.2025
5.0.0 18 31.01.2025
5.0.0-rc.2.20475.17 12 18.02.2025
5.0.0-rc.1.20451.17 12 05.02.2025
5.0.0-preview.8.20414.8 14 31.01.2025
5.0.0-preview.7.20365.19 12 01.02.2025
5.0.0-preview.6.20312.15 13 01.02.2025
5.0.0-preview.5.20279.2 12 31.01.2025
5.0.0-preview.4.20257.10 12 31.01.2025
5.0.0-preview.3.20215.2 11 31.01.2025
5.0.0-preview.2.20160.3 10 31.01.2025
5.0.0-preview.1.20120.4 12 31.01.2025
3.1.32 16 06.02.2025
3.1.31 18 31.01.2025
3.1.30 16 31.01.2025
3.1.29 17 06.02.2025
3.1.28 17 04.02.2025
3.1.27 16 20.02.2025
3.1.26 17 05.02.2025
3.1.25 17 06.02.2025
3.1.24 17 06.02.2025
3.1.23 16 05.02.2025
3.1.22 16 04.02.2025
3.1.21 19 07.02.2025
3.1.20 17 05.02.2025
3.1.19 17 05.02.2025
3.1.18 18 09.02.2025
3.1.17 17 08.02.2025
3.1.16 18 31.01.2025
3.1.15 16 19.02.2025
3.1.14 18 30.01.2025
3.1.13 16 08.02.2025
3.1.12 17 19.02.2025
3.1.11 18 06.02.2025
3.1.10 17 31.01.2025
3.1.9 16 05.02.2025
3.1.8 14 05.02.2025
3.1.7 15 04.02.2025
3.1.6 17 31.01.2025
3.1.5 15 08.02.2025
3.1.4 17 05.02.2025
3.1.3 16 07.02.2025
3.1.2 17 01.02.2025
3.1.1 16 05.02.2025
3.1.0 15 06.02.2025
3.1.0-preview3.19553.2 12 31.01.2025
3.1.0-preview2.19525.4 12 05.02.2025
3.1.0-preview1.19506.1 10 05.02.2025
3.0.3 18 31.01.2025
3.0.2 18 31.01.2025
3.0.1 16 06.02.2025
3.0.0 19 31.01.2025
3.0.0-rc1.19456.10 10 08.02.2025
3.0.0-preview9.19423.4 13 31.01.2025
3.0.0-preview8.19405.4 14 08.02.2025
3.0.0-preview7.19362.4 11 31.01.2025
3.0.0-preview6.19304.6 12 05.02.2025
3.0.0-preview5.19227.9 12 08.02.2025
3.0.0-preview4.19216.2 11 31.01.2025
3.0.0-preview3.19153.1 11 31.01.2025
3.0.0-preview.19074.2 11 31.01.2025
3.0.0-preview.18572.1 11 31.01.2025
2.2.5 17 31.01.2025
2.2.0 15 05.02.2025
2.2.0-preview3-35497 12 01.02.2025
2.2.0-preview2-35157 11 31.01.2025
2.2.0-preview1-35029 11 01.02.2025
2.1.1 16 05.02.2025
2.1.0 16 05.02.2025
2.1.0-rc1-final 15 05.02.2025
2.1.0-preview2-final 13 31.01.2025
2.1.0-preview1-final 13 31.01.2025
2.0.2 17 31.01.2025
2.0.1 12 27.03.2025
2.0.0 12 31.01.2025
2.0.0-preview2-final 13 31.01.2025
2.0.0-preview1-final 13 31.01.2025
1.0.2 15 31.01.2025
1.0.1 18 05.02.2025
1.0.0 15 31.01.2025
1.0.0-preview1-final 13 31.01.2025