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

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.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
17
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
18
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
19
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
18
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
19
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source at: https://github.com/aspnet/AzureIntegration/tree/5dba26f8fbe5c4979ee6a7b6a13cf30fc4c4c270
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/561deb05ae2d6680206e3d4a6bc75de699585980
23
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
20
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/d1fa2cb155ab9226f20b87ab0d7a1eb16b8a8b69
19
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/fbe05294ac5c88be848b4d57d60cb2657874da9b
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/36f34b3a19eb7219142ab2035921d08e84c572c3
18
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
18
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/50b7e9c661453874aa7a54a3985d5120564bb2e5
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/67acc3d331454956fc06d6de2218a625e3e596f8
18
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/98a853b20131fd59b37076dd3699d8c7f62b24cb
18
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/ab1f1c636afa3a6607f2d67bc387b586596d1d38
19
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/bb01bbf4433e27289b99001b7de6a582879d1835
18
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/c0ae1d179dba6f3acd0e55be55718c97c9028698
18
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
18
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/f050ae044be8bddc002ab88736e4bf78dc822122
18

.NET Framework 4.6.2

.NET Standard 2.0

.NET 10.0

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