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

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
Microsoft.AspNetCore.App
Microsoft.AspNetCore.App
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/cd9340856ed85215a911c97c44d52373f6cba2f9
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/bd1e14b7d16b798de8a874189c89afed755a266c
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
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/9e73c3382f4d9e6ba47afff6a1467ace945c77e7
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/54142bcb25544b72fac28b1b061e7788c91c4f49
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
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/3dfc6fda80a10797b8c8fda1970e7b377fd8ed8d
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
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
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/c75b3f7a2fb9fe21fd96c93c070fdfa88a2fbe97
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/2670c128d522473e146ff9f8159bfffdfe694cd9
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/aee5e4080331553ea9dfb7fb388b6d72f715bf6a
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/f6cb1b5953598e1562d33e1cbbdae2b130792833
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/3fe12b935c03138f76364dc877a7e069e254b5b2
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/c9e3996173cec136bc2e9f3b4ec45f2a323b1d63
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/abc2c7226ff616316cd1e05d76e6c36b49ce06a1
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/0bc3c376f0cd14335e8b3afca69596acabeb1f80
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

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