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.
30
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/1f49b6637a0c3a6af34b42332e06966e4d383d54
27
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/57512b49997283599b00a6b67d0ccebaec171daf
27
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/7e8bbb70b266b2fdaf0b11ec47fb3077761fb6bf
26
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
26
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
26
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
26
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/d827c653b787c07de908240b7746ce34d3e6271e
26
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/06b2bc111203f9b9ff0914a7715675a9a66bdac9
25
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/39e0501ee91dcf2b9b885d647795184815fb0408
25
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/522705f9a27b99ca4ad261f2e89fe51a77b2338e
25
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
25
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/cec88a329584349fda070f4c7346b10538210ace
25
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/8e941eb42f819adb116b881195158b3887a70a1c
25
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/4d0b3722384bfec7d4c210674df9b7bf1e59da90
25
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/2f1db20456007c9515068a35a65afdf99af70bc6
25
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/5a4c82ec57fadddef9ce841d608de5c7c8c74446
25
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
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/70048beee894074e9718206a0017d9b080ee66ff
24

.NET Framework 4.6.2

.NET Standard 2.0

.NET 10.0

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