Microsoft.Extensions.Logging.AzureAppServices 10.0.12

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. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/829dd6d36442c2bcf83ebfc9d4159b7ecc15c2ff
11
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/dotnet/tree/b16286c2284fecf303dbc12a0bb152476d662e44
11
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/dotnet/tree/47fb725acf5d7094af51aebbb5b7e5c44a3b2a77
10
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/dotnet/tree/4370ea16341331f045fa9b89cc46e03aed27195c
10
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
9
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/087328de5f1e0067be48d87295ae8d92064a1535
9
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/02c6de4ba6022025fcda7581415f310f8c73cdc3
9
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/55738ff96b832439076e25584cfe0eb3bace9b01
9
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
9
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
9
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/be2530c3035e4bfa7670c6b18f5a64ef89e0e80d
9
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
8
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
8
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/b7a2ec8c7ed6b48857af0a69688a73e8c14fe6cb
8
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
8
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices. This package was built from the source code at https://github.com/dotnet/dotnet/tree/44525024595742ebe09023abe709df51de65009b
8
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/d634f2bd1ad6e319f26ff0f1d7ada5539158a19f
8

Version Downloads Last updated
11.0.0-rc.1.26425.128 1 10/02/2026
11.0.0-preview.7.26381.103 0 08/11/2026
11.0.0-preview.6.26359.118 4 07/27/2026
11.0.0-preview.5.26302.115 5 06/13/2026
11.0.0-preview.4.26230.115 6 05/16/2026
11.0.0-preview.3.26207.106 0 04/14/2026
11.0.0-preview.2.26159.112 0 03/10/2026
11.0.0-preview.1.26104.118 5 05/16/2026
10.0.12 1 10/02/2026
10.0.11 2 09/01/2026
10.0.10 4 07/21/2026
10.0.9 6 06/13/2026
10.0.8 7 05/15/2026
10.0.7 9 04/27/2026
10.0.6 9 04/27/2026
10.0.5 5 05/13/2026
10.0.4 5 05/13/2026
10.0.3 4 05/13/2026
10.0.2 5 05/13/2026
10.0.1 5 05/13/2026
10.0.0 5 05/13/2026
10.0.0-rc.2.25502.107 4 05/11/2026
10.0.0-rc.1.25451.107 4 05/13/2026
10.0.0-preview.7.25380.108 0 08/12/2025
10.0.0-preview.6.25358.103 0 07/15/2025
10.0.0-preview.5.25277.114 5 05/13/2026
10.0.0-preview.4.25258.110 4 05/11/2026
10.0.0-preview.3.25172.1 0 04/10/2025
10.0.0-preview.2.25164.1 0 03/18/2025
10.0.0-preview.1.25120.3 0 02/25/2025
9.0.20 1 10/02/2026
9.0.19 2 09/01/2026
9.0.18 4 07/21/2026
9.0.17 6 06/14/2026
9.0.16 6 05/13/2026
9.0.15 9 04/27/2026
9.0.14 5 05/10/2026
9.0.13 5 05/10/2026
9.0.12 5 05/10/2026
9.0.11 5 05/13/2026
9.0.10 5 05/13/2026
9.0.9 2 05/12/2026
9.0.8 5 05/12/2026
9.0.7 5 05/12/2026
9.0.6 5 05/12/2026
9.0.5 5 05/12/2026
9.0.4 5 05/12/2026
9.0.3 5 05/12/2026
9.0.2 5 05/12/2026
9.0.1 5 05/12/2026
9.0.0 4 05/12/2026
9.0.0-rc.2.24474.3 5 05/14/2026
9.0.0-rc.1.24452.1 4 05/14/2026
9.0.0-preview.7.24406.2 0 08/13/2024
9.0.0-preview.6.24328.4 0 07/09/2024
9.0.0-preview.5.24306.11 4 05/11/2026
9.0.0-preview.4.24267.6 0 05/21/2024
9.0.0-preview.3.24172.13 4 05/11/2026
9.0.0-preview.2.24128.4 0 03/12/2024
9.0.0-preview.1.24081.5 0 02/13/2024
8.0.31 1 10/02/2026
8.0.30 2 09/01/2026
8.0.29 4 07/21/2026
8.0.28 5 06/13/2026
8.0.27 6 05/13/2026
8.0.26 9 04/27/2026
8.0.25 5 05/10/2026
8.0.24 5 05/10/2026
8.0.23 5 05/10/2026
8.0.22 5 05/13/2026
8.0.21 5 05/10/2026
8.0.20 5 05/13/2026
8.0.19 5 05/10/2026
8.0.18 5 05/13/2026
8.0.17 5 05/10/2026
8.0.16 5 05/10/2026
8.0.15 5 05/10/2026
8.0.14 5 05/10/2026
8.0.13 5 05/10/2026
8.0.12 5 05/10/2026
8.0.11 5 05/13/2026
8.0.10 5 05/13/2026
8.0.8 4 05/12/2026
8.0.7 5 05/12/2026
8.0.6 5 05/12/2026
8.0.5 5 05/10/2026
8.0.4 5 05/12/2026
8.0.3 5 05/12/2026
8.0.2 5 05/12/2026
8.0.1 5 05/12/2026
8.0.0 4 05/12/2026
8.0.0-rc.2.23480.2 5 05/13/2026
8.0.0-rc.1.23421.29 5 05/14/2026
8.0.0-preview.7.23375.9 5 05/13/2026
8.0.0-preview.6.23329.11 4 05/11/2026
8.0.0-preview.5.23302.2 0 06/13/2023
8.0.0-preview.4.23260.4 0 05/16/2023
8.0.0-preview.3.23177.8 0 04/11/2023
8.0.0-preview.2.23153.2 0 03/14/2023
8.0.0-preview.1.23112.2 0 02/21/2023
7.0.20 5 05/13/2026
7.0.19 5 05/10/2026
7.0.18 5 05/10/2026
7.0.17 5 05/13/2026
7.0.16 5 05/10/2026
7.0.15 5 05/10/2026
7.0.14 5 05/10/2026
7.0.13 5 05/10/2026
7.0.12 5 05/10/2026
7.0.11 5 05/13/2026
7.0.10 5 05/13/2026
7.0.9 5 05/12/2026
7.0.8 5 05/12/2026
7.0.7 4 05/12/2026
7.0.5 5 05/12/2026
7.0.4 5 05/12/2026
7.0.3 5 05/12/2026
7.0.2 5 05/12/2026
7.0.1 5 05/12/2026
7.0.0 4 05/12/2026
7.0.0-rc.2.22476.2 5 05/13/2026
7.0.0-rc.1.22427.2 5 05/13/2026
7.0.0-preview.7.22376.6 0 08/09/2022
7.0.0-preview.6.22330.3 0 07/12/2022
7.0.0-preview.5.22303.8 5 05/13/2026
7.0.0-preview.4.22251.1 0 05/10/2022
7.0.0-preview.3.22178.4 0 04/13/2022
7.0.0-preview.2.22153.2 0 03/14/2022
7.0.0-preview.1.22109.13 5 05/16/2026
6.0.36 5 05/13/2026
6.0.35 5 05/10/2026
6.0.33 5 05/13/2026
6.0.32 5 05/10/2026
6.0.31 5 05/10/2026
6.0.30 5 05/13/2026
6.0.29 5 05/10/2026
6.0.28 5 05/10/2026
6.0.27 5 05/10/2026
6.0.26 5 05/13/2026
6.0.25 5 05/10/2026
6.0.24 5 05/10/2026
6.0.23 5 05/10/2026
6.0.22 5 05/13/2026
6.0.21 5 05/10/2026
6.0.20 5 05/13/2026
6.0.19 5 05/10/2026
6.0.18 5 05/10/2026
6.0.16 5 05/13/2026
6.0.15 5 05/10/2026
6.0.14 5 05/10/2026
6.0.13 5 05/10/2026
6.0.12 5 05/10/2026
6.0.11 5 05/13/2026
6.0.10 5 05/13/2026
6.0.9 5 05/12/2026
6.0.8 5 05/12/2026
6.0.7 5 05/12/2026
6.0.6 4 05/12/2026
6.0.5 5 05/12/2026
6.0.4 5 05/12/2026
6.0.3 5 05/12/2026
6.0.2 5 05/12/2026
6.0.1 5 05/12/2026
6.0.0 4 05/12/2026
6.0.0-rc.2.21480.10 5 05/11/2026
6.0.0-rc.1.21452.15 5 05/10/2026
6.0.0-preview.7.21378.6 0 08/10/2021
6.0.0-preview.6.21355.2 0 07/14/2021
6.0.0-preview.5.21301.17 5 05/09/2026
6.0.0-preview.4.21253.5 0 05/24/2021
6.0.0-preview.3.21201.13 4 05/14/2026
6.0.0-preview.2.21154.6 0 03/11/2021
6.0.0-preview.1.21103.6 0 02/12/2021
5.0.17 5 05/10/2026
5.0.16 5 05/10/2026
5.0.15 5 05/13/2026
5.0.14 5 05/10/2026
5.0.13 5 05/10/2026
5.0.12 5 05/10/2026
5.0.11 5 05/13/2026
5.0.10 5 05/13/2026
5.0.9 5 05/12/2026
5.0.8 5 05/12/2026
5.0.7 5 05/12/2026
5.0.6 5 05/12/2026
5.0.5 4 05/12/2026
5.0.4 5 05/12/2026
5.0.3 5 05/12/2026
5.0.2 5 05/12/2026
5.0.1 5 05/12/2026
5.0.0 4 05/12/2026
5.0.0-rc.2.20475.17 5 05/10/2026
5.0.0-rc.1.20451.17 5 05/10/2026
5.0.0-preview.8.20414.8 0 08/25/2020
5.0.0-preview.7.20365.19 5 05/11/2026
5.0.0-preview.6.20312.15 4 05/13/2026
5.0.0-preview.5.20279.2 0 06/10/2020
5.0.0-preview.4.20257.10 0 05/18/2020
5.0.0-preview.3.20215.2 0 04/23/2020
5.0.0-preview.2.20160.3 0 04/02/2020
5.0.0-preview.1.20120.4 0 03/16/2020
3.1.32 5 05/13/2026
3.1.31 5 05/13/2026
3.1.30 5 05/13/2026
3.1.29 5 05/10/2026
3.1.28 5 05/10/2026
3.1.27 5 05/10/2026
3.1.26 5 05/10/2026
3.1.25 5 05/10/2026
3.1.24 5 05/10/2026
3.1.23 5 05/13/2026
3.1.22 5 05/13/2026
3.1.21 5 05/13/2026
3.1.20 5 05/10/2026
3.1.19 5 05/13/2026
3.1.18 5 05/13/2026
3.1.17 5 05/13/2026
3.1.16 5 05/13/2026
3.1.15 5 05/13/2026
3.1.14 4 05/13/2026
3.1.13 5 05/13/2026
3.1.12 5 05/13/2026
3.1.11 5 05/13/2026
3.1.10 5 05/13/2026
3.1.9 5 05/12/2026
3.1.8 5 05/12/2026
3.1.7 4 05/12/2026
3.1.6 5 05/12/2026
3.1.5 5 05/12/2026
3.1.4 5 05/12/2026
3.1.3 4 05/12/2026
3.1.2 5 05/12/2026
3.1.1 4 05/12/2026
3.1.0 5 05/12/2026
3.1.0-preview3.19553.2 5 05/14/2026
3.1.0-preview2.19525.4 4 05/12/2026
3.1.0-preview1.19506.1 5 05/09/2026
3.0.3 4 05/12/2026
3.0.2 5 05/12/2026
3.0.1 5 05/12/2026
3.0.0 4 05/12/2026
3.0.0-rc1.19456.10 5 05/11/2026
3.0.0-preview9.19423.4 5 05/14/2026
3.0.0-preview8.19405.4 4 05/12/2026
3.0.0-preview7.19362.4 4 05/12/2026
3.0.0-preview6.19304.6 5 05/14/2026
3.0.0-preview5.19227.9 4 05/12/2026
3.0.0-preview4.19216.2 4 05/12/2026
3.0.0-preview3.19153.1 5 05/10/2026
3.0.0-preview.19074.2 4 05/15/2026
3.0.0-preview.18572.1 3 05/14/2026
2.2.5 4 05/12/2026
2.2.0 4 05/12/2026
2.2.0-preview3-35497 1 09/02/2026
2.2.0-preview2-35157 0 09/12/2018
2.2.0-preview1-35029 1 07/28/2026
2.1.1 4 05/12/2026
2.1.0 5 05/12/2026
2.1.0-rc1-final 1 09/01/2026
2.1.0-preview2-final 1 09/01/2026
2.1.0-preview1-final 0 02/26/2018
2.0.2 4 05/12/2026
2.0.1 5 05/12/2026
2.0.0 4 05/12/2026
2.0.0-preview2-final 4 05/16/2026
2.0.0-preview1-final 5 05/09/2026
1.0.2 4 05/12/2026
1.0.1 4 05/12/2026
1.0.0 4 05/12/2026
1.0.0-preview1-final 4 05/16/2026