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

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.
13
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
15
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/21d42143378ad6cc4bcbaebfda5f3acddf13aa47
13
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
13
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
14
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
13
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
13
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
13
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
13
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
13
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/3c37ef8f5358abb303c05d299f029fca7d867d56
13
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/432e6a061f28dda696ba16bc5442328d23b25d93
13
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
13
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
13
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
14
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
13
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
13
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
14
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
13
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
13

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

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