Microsoft.Extensions.Logging.AzureAppServices 10.0.9

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.
149
Microsoft.AspNetCore.AzureAppServicesIntegration
ASP.NET Core integration with Azure AppServices.
153
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/0c26925a185ba2996051c0f37a995ef0a682cf54
163
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/1bf292d47ac2a0ebda07d8a3f00355dd01915ad5
152
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
142
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/2e51a0b6eba74bdf02aee71944e973487937cb99
145
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/458d97420a173fe87487b58ec4aa47a4c9dc4710
143
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/509f6badec2f3162f0e50330cd9107e5624b379b
152
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/62c098bc170f50feca15916e81cb7f321ffc52ff
142
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/67e04394e98d5bfa6a5684d471a72fcbe30fd587
145
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
144
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/c04846dc66cc97f71d83a83a15437828435f5d44
146
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/e81033e094d4663ffd227bb4aed30b76b0631e6d
155
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
152
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/32e8c8cae5b1a4dd752d0a42a6f8a2813f75f173
160
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/330c2397160929d6d3275ade03cee436265258e8
144
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/36be7ed6d6d56b7da0a2891e3de7ecc2aa48eecd
148
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
143
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/a4938d07a5127ffad8466ddf703a6b5b21f4b0c9
148
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
145

Version Downloads Last updated
11.0.0-preview.5.26302.115 5 06/09/2026
11.0.0-preview.4.26230.115 17 05/12/2026
11.0.0-preview.3.26207.106 24 04/14/2026
11.0.0-preview.2.26159.112 23 03/11/2026
11.0.0-preview.1.26104.118 30 02/11/2026
10.0.9 5 06/09/2026
10.0.8 10 05/13/2026
10.0.7 20 04/21/2026
10.0.6 16 04/14/2026
10.0.5 25 03/14/2026
10.0.4 22 03/11/2026
10.0.3 25 02/11/2026
10.0.2 32 01/14/2026
10.0.1 57 12/11/2025
10.0.0 84 11/12/2025
10.0.0-rc.2.25502.107 87 10/15/2025
10.0.0-rc.1.25451.107 80 09/09/2025
10.0.0-preview.7.25380.108 102 08/14/2025
10.0.0-preview.6.25358.103 115 07/16/2025
10.0.0-preview.5.25277.114 100 06/06/2025
10.0.0-preview.4.25258.110 137 05/13/2025
10.0.0-preview.3.25172.1 120 04/12/2025
10.0.0-preview.2.25164.1 103 03/30/2025
10.0.0-preview.1.25120.3 121 03/30/2025
9.0.17 4 06/09/2026
9.0.16 9 05/13/2026
9.0.15 20 04/14/2026
9.0.14 20 03/11/2026
9.0.13 23 02/11/2026
9.0.12 23 01/13/2026
9.0.11 61 11/12/2025
9.0.10 68 10/15/2025
9.0.9 81 09/09/2025
9.0.8 100 08/05/2025
9.0.7 100 07/09/2025
9.0.6 92 06/11/2025
9.0.5 109 05/14/2025
9.0.4 126 04/10/2025
9.0.3 107 03/30/2025
9.0.2 106 03/30/2025
9.0.1 112 03/30/2025
9.0.0 107 11/14/2024
9.0.0-rc.2.24474.3 124 10/21/2024
9.0.0-rc.1.24452.1 122 10/20/2024
9.0.0-preview.7.24406.2 108 08/21/2024
9.0.0-preview.6.24328.4 180 07/20/2024
9.0.0-preview.5.24306.11 121 07/20/2024
9.0.0-preview.4.24267.6 124 07/20/2024
9.0.0-preview.3.24172.13 126 07/20/2024
9.0.0-preview.2.24128.4 138 07/20/2024
9.0.0-preview.1.24081.5 153 07/20/2024
8.0.28 4 06/09/2026
8.0.27 10 05/13/2026
8.0.26 21 04/14/2026
8.0.25 19 03/11/2026
8.0.24 24 02/11/2026
8.0.23 26 01/14/2026
8.0.22 66 11/12/2025
8.0.21 66 10/15/2025
8.0.20 92 09/09/2025
8.0.19 83 08/05/2025
8.0.18 89 07/09/2025
8.0.17 81 06/11/2025
8.0.16 114 05/14/2025
8.0.15 96 04/10/2025
8.0.14 103 03/29/2025
8.0.13 125 03/29/2025
8.0.12 105 03/29/2025
8.0.11 102 11/14/2024
8.0.10 118 10/22/2024
8.0.8 115 08/21/2024
8.0.7 150 07/20/2024
8.0.6 119 07/20/2024
8.0.5 136 07/20/2024
8.0.4 124 07/20/2024
8.0.3 116 07/20/2024
8.0.2 135 07/20/2024
8.0.1 124 07/20/2024
8.0.0 153 07/20/2024
8.0.0-rc.2.23480.2 124 07/20/2024
8.0.0-rc.1.23421.29 123 07/20/2024
8.0.0-preview.7.23375.9 142 07/20/2024
8.0.0-preview.6.23329.11 140 07/20/2024
8.0.0-preview.5.23302.2 131 07/20/2024
8.0.0-preview.4.23260.4 151 07/20/2024
8.0.0-preview.3.23177.8 114 07/20/2024
8.0.0-preview.2.23153.2 128 07/20/2024
8.0.0-preview.1.23112.2 119 07/20/2024
7.0.20 130 07/20/2024
7.0.19 138 07/20/2024
7.0.18 137 07/20/2024
7.0.17 125 07/20/2024
7.0.16 119 07/20/2024
7.0.15 129 07/20/2024
7.0.14 118 07/20/2024
7.0.13 120 07/20/2024
7.0.12 137 07/20/2024
7.0.11 149 07/20/2024
7.0.10 128 07/20/2024
7.0.9 113 07/20/2024
7.0.8 112 07/20/2024
7.0.7 122 07/20/2024
7.0.5 133 07/20/2024
7.0.4 140 07/20/2024
7.0.3 133 07/20/2024
7.0.2 144 07/20/2024
7.0.1 133 07/20/2024
7.0.0 116 07/20/2024
7.0.0-rc.2.22476.2 121 07/20/2024
7.0.0-rc.1.22427.2 130 07/20/2024
7.0.0-preview.7.22376.6 131 07/20/2024
7.0.0-preview.6.22330.3 123 07/20/2024
7.0.0-preview.5.22303.8 112 07/20/2024
7.0.0-preview.4.22251.1 117 07/20/2024
7.0.0-preview.3.22178.4 125 07/20/2024
7.0.0-preview.2.22153.2 134 07/20/2024
7.0.0-preview.1.22109.13 125 07/20/2024
6.0.36 127 11/14/2024
6.0.35 108 10/22/2024
6.0.33 114 08/21/2024
6.0.32 125 07/20/2024
6.0.31 157 07/20/2024
6.0.30 119 07/20/2024
6.0.29 122 07/20/2024
6.0.28 131 07/20/2024
6.0.27 127 07/20/2024
6.0.26 130 07/20/2024
6.0.25 111 07/20/2024
6.0.24 128 07/20/2024
6.0.23 119 07/20/2024
6.0.22 117 07/20/2024
6.0.21 119 07/20/2024
6.0.20 140 07/20/2024
6.0.19 110 07/20/2024
6.0.18 142 07/20/2024
6.0.16 133 07/20/2024
6.0.15 104 07/20/2024
6.0.14 141 07/20/2024
6.0.13 135 07/20/2024
6.0.12 105 07/20/2024
6.0.11 124 07/20/2024
6.0.10 142 07/20/2024
6.0.9 130 07/20/2024
6.0.8 159 07/20/2024
6.0.7 113 07/20/2024
6.0.6 135 07/20/2024
6.0.5 120 07/20/2024
6.0.4 145 07/20/2024
6.0.3 129 07/20/2024
6.0.2 114 07/20/2024
6.0.1 134 07/20/2024
6.0.0 114 07/20/2024
6.0.0-rc.2.21480.10 118 07/20/2024
6.0.0-rc.1.21452.15 139 07/20/2024
6.0.0-preview.7.21378.6 142 07/20/2024
6.0.0-preview.6.21355.2 114 07/20/2024
6.0.0-preview.5.21301.17 125 07/20/2024
6.0.0-preview.4.21253.5 118 07/20/2024
6.0.0-preview.3.21201.13 119 07/20/2024
6.0.0-preview.2.21154.6 122 07/20/2024
6.0.0-preview.1.21103.6 131 07/20/2024
5.0.17 146 07/20/2024
5.0.16 149 07/20/2024
5.0.15 123 07/20/2024
5.0.14 109 07/20/2024
5.0.13 127 07/20/2024
5.0.12 153 07/20/2024
5.0.11 138 07/20/2024
5.0.10 125 07/20/2024
5.0.9 143 07/20/2024
5.0.8 123 07/20/2024
5.0.7 115 07/20/2024
5.0.6 144 07/20/2024
5.0.5 121 07/20/2024
5.0.4 129 07/20/2024
5.0.3 126 07/20/2024
5.0.2 139 07/20/2024
5.0.1 114 07/20/2024
5.0.0 132 07/20/2024
5.0.0-rc.2.20475.17 120 07/20/2024
5.0.0-rc.1.20451.17 132 07/20/2024
5.0.0-preview.8.20414.8 134 07/20/2024
5.0.0-preview.7.20365.19 126 07/20/2024
5.0.0-preview.6.20312.15 125 07/20/2024
5.0.0-preview.5.20279.2 116 07/20/2024
5.0.0-preview.4.20257.10 114 07/20/2024
5.0.0-preview.3.20215.2 131 07/20/2024
5.0.0-preview.2.20160.3 111 07/20/2024
5.0.0-preview.1.20120.4 130 07/20/2024
3.1.32 154 07/20/2024
3.1.31 115 07/20/2024
3.1.30 119 07/20/2024
3.1.29 139 07/20/2024
3.1.28 109 07/20/2024
3.1.27 137 07/20/2024
3.1.26 101 07/20/2024
3.1.25 114 07/20/2024
3.1.24 118 07/20/2024
3.1.23 144 07/20/2024
3.1.22 116 07/20/2024
3.1.21 140 07/20/2024
3.1.20 109 07/20/2024
3.1.19 139 07/20/2024
3.1.18 111 07/20/2024
3.1.17 125 07/20/2024
3.1.16 123 07/20/2024
3.1.15 148 07/20/2024
3.1.14 124 07/20/2024
3.1.13 122 07/20/2024
3.1.12 118 07/20/2024
3.1.11 134 07/20/2024
3.1.10 134 07/20/2024
3.1.9 110 07/20/2024
3.1.8 117 07/20/2024
3.1.7 146 07/20/2024
3.1.6 126 07/20/2024
3.1.5 114 07/20/2024
3.1.4 135 07/20/2024
3.1.3 127 07/20/2024
3.1.2 122 07/20/2024
3.1.1 112 07/20/2024
3.1.0 129 07/20/2024
3.1.0-preview3.19553.2 137 07/20/2024
3.1.0-preview2.19525.4 131 07/20/2024
3.1.0-preview1.19506.1 126 07/20/2024
3.0.3 105 07/20/2024
3.0.2 119 07/20/2024
3.0.1 123 07/20/2024
3.0.0 122 07/20/2024
3.0.0-rc1.19456.10 115 07/20/2024
3.0.0-preview9.19423.4 143 07/20/2024
3.0.0-preview8.19405.4 126 07/20/2024
3.0.0-preview7.19362.4 147 07/20/2024
3.0.0-preview6.19304.6 141 07/20/2024
3.0.0-preview5.19227.9 135 07/20/2024
3.0.0-preview4.19216.2 120 07/20/2024
3.0.0-preview3.19153.1 132 07/20/2024
3.0.0-preview.19074.2 143 07/20/2024
3.0.0-preview.18572.1 114 07/20/2024
2.2.5 154 07/20/2024
2.2.0 108 07/20/2024
2.2.0-preview3-35497 123 07/20/2024
2.2.0-preview2-35157 119 07/20/2024
2.2.0-preview1-35029 112 07/20/2024
2.1.1 120 07/20/2024
2.1.0 110 07/20/2024
2.1.0-rc1-final 133 07/20/2024
2.1.0-preview2-final 107 07/20/2024
2.1.0-preview1-final 133 07/20/2024
2.0.2 124 07/20/2024
2.0.1 121 07/20/2024
2.0.0 113 07/20/2024
2.0.0-preview2-final 114 07/20/2024
2.0.0-preview1-final 133 07/20/2024
1.0.2 124 07/20/2024
1.0.1 132 07/20/2024
1.0.0 123 07/20/2024
1.0.0-preview1-final 123 07/20/2024