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

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/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/be51b1aa73343e45a1d00afd436abad794f471fb
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
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/844a82e37cae48af2ab2ee4f39b41283e6bb4f0e
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/5a129191c1a59ef35c9b4c5a04de71ab111c28d2
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
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/d27c0100bc8b9b93eb8102b097c20b40f7de9c49
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
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/dc5e11abdb05b322f4b74b3afbcfb352fe984b2e
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/dotnet/aspnetcore/tree/1d696053fcd6735aaac1902afdb0b92edbf43e71
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/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/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

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

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