Microsoft.Extensions.Logging.AzureAppServices 10.0.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.Extensions.Logging.AzureAppServices --version 10.0.1
                    
NuGet\Install-Package Microsoft.Extensions.Logging.AzureAppServices -Version 10.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="10.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Extensions.Logging.AzureAppServices" Version="10.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Extensions.Logging.AzureAppServices --version 10.0.1
                    
#r "nuget: Microsoft.Extensions.Logging.AzureAppServices, 10.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Extensions.Logging.AzureAppServices@10.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Extensions.Logging.AzureAppServices&version=10.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Logging.AzureAppServices&version=10.0.1
                    
Install as a Cake Tool

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (33)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Logging.AzureAppServices:

Package Downloads
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

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.

Serilog.Sinks.AzureApp

A Serilog sink that supports Azure App Services 'Diagnostics logs' and 'Log stream' features.

Relay.Web

A web framework built for .NET Core

Amelia

Package Description

GitHub repositories (14)

Showing the top 14 popular GitHub repositories that depend on Microsoft.Extensions.Logging.AzureAppServices:

Repository Stars
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
microsoft/ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 20, React 19, Vue 3.5, BFF with YARP, NextJs 16, Domain-Driven Design, CQRS, SOLID, Asp.Net Core Identity Custom Storage, OpenID Connect, EF Core, OpenTelemetry, SignalR, Background Services, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ...
VirtoCommerce/vc-platform
Virto Commerce B2B Innovation Platform
EdiWang/Moonglade
Blog system of https://edi.wang, runs on Microsoft Azure
ProfessionalCSharp/ProfessionalCSharp7
Code samples for the book Professional C# 7 and .NET Core 2.0 (with updates for 2.1), Wrox Press
microsoft/BotFramework-BlogSamples
Welcome to the Bot Framework samples repository. Here you will find sample bots that take advantage of Bot Framework capabilities.
ProfessionalCSharp/ProfessionalCSharp2021
Source code for Professional C# and .NET 2021 Edition (with updates for C# 11 and .NET 7)
BotBuilderCommunity/botbuilder-community-dotnet
Part of the Bot Builder Community Project. Repository for extensions for the Bot Builder .NET SDK, including middleware, dialogs, recognizers and more.
ProfessionalCSharp/MoreSamples
Additional code samples the book series Professional C#, Wrox Press
VirtoCommerce/vc-storefront
Virto Commerce Storefront - ASP.NET Core 8.0
microsoft/app-innovation-workshop
Hands-on workshop designed to help you learn Azure, Mobile & AI
DevBetterCom/DevBetterWeb
A simple web application for devBetter
tompaana/intermediator-bot-sample
A sample bot, built with the Microsoft Bot Framework (v4), that routes messages between two users on different channels.
Version Downloads Last Updated
10.0.2 4,121 1/13/2026
10.0.1 51,502 12/9/2025
10.0.0 105,616 11/11/2025
10.0.0-rc.2.25502.107 1,723 10/14/2025
10.0.0-rc.1.25451.107 3,231 9/9/2025
10.0.0-preview.7.25380.108 971 8/12/2025
10.0.0-preview.6.25358.103 1,170 7/15/2025
10.0.0-preview.5.25277.114 1,485 6/6/2025
10.0.0-preview.4.25258.110 1,281 5/12/2025
10.0.0-preview.3.25172.1 1,831 4/10/2025
10.0.0-preview.2.25164.1 3,083 3/18/2025
10.0.0-preview.1.25120.3 2,613 2/25/2025
9.0.12 925 1/13/2026
9.0.11 50,499 11/11/2025
9.0.10 128,850 10/14/2025
9.0.9 141,609 9/9/2025
9.0.8 183,440 8/5/2025
9.0.7 112,864 7/8/2025
9.0.6 166,932 6/10/2025
9.0.5 145,068 5/13/2025
9.0.4 244,974 4/8/2025
9.0.3 142,360 3/11/2025
9.0.2 263,000 2/11/2025
9.0.1 504,929 1/14/2025
9.0.0 392,062 11/12/2024
9.0.0-rc.2.24474.3 7,045 10/8/2024
9.0.0-rc.1.24452.1 2,483 9/10/2024
9.0.0-preview.7.24406.2 5,208 8/13/2024
9.0.0-preview.6.24328.4 3,398 7/9/2024
9.0.0-preview.5.24306.11 2,532 6/11/2024
9.0.0-preview.4.24267.6 1,504 5/21/2024
9.0.0-preview.3.24172.13 3,231 4/11/2024
9.0.0-preview.2.24128.4 7,148 3/12/2024
9.0.0-preview.1.24081.5 2,324 2/13/2024
8.0.23 867 1/13/2026
8.0.22 40,193 11/11/2025
8.0.21 48,228 10/14/2025
8.0.20 37,652 9/9/2025
8.0.19 68,757 8/4/2025
8.0.18 26,966 7/8/2025
8.0.17 50,409 6/10/2025
8.0.16 99,645 5/13/2025
8.0.15 125,573 4/8/2025
8.0.14 92,644 3/11/2025
8.0.13 110,037 2/11/2025
8.0.12 174,228 1/14/2025
8.0.11 480,820 11/12/2024
8.0.10 800,996 10/8/2024
8.0.8 832,007 8/13/2024
8.0.7 443,408 7/9/2024
8.0.6 607,619 5/28/2024
8.0.5 175,171 5/14/2024
8.0.4 626,836 4/9/2024
8.0.3 507,277 3/12/2024
8.0.2 516,175 2/13/2024
8.0.1 547,312 1/9/2024
8.0.0 660,391 11/14/2023
8.0.0-rc.2.23480.2 3,548 10/10/2023
8.0.0-rc.1.23421.29 3,809 9/12/2023
8.0.0-preview.7.23375.9 1,839 8/8/2023
8.0.0-preview.6.23329.11 1,384 7/11/2023
8.0.0-preview.5.23302.2 1,027 6/13/2023
8.0.0-preview.4.23260.4 3,488 5/16/2023
8.0.0-preview.3.23177.8 2,583 4/11/2023
8.0.0-preview.2.23153.2 2,770 3/14/2023
8.0.0-preview.1.23112.2 1,829 2/21/2023
7.0.20 26,298 5/28/2024
7.0.19 6,447 5/14/2024
7.0.18 17,972 4/9/2024
7.0.17 15,816 3/12/2024
7.0.16 20,381 2/13/2024
7.0.15 39,742 1/9/2024
7.0.14 77,214 11/14/2023
7.0.13 144,197 10/24/2023
7.0.12 89,683 10/10/2023
7.0.11 142,820 9/12/2023
7.0.10 396,795 8/8/2023
7.0.9 153,688 7/11/2023
7.0.8 107,500 6/22/2023
7.0.7 78,915 6/13/2023
7.0.5 441,381 4/11/2023
7.0.4 196,163 3/14/2023
7.0.3 268,159 2/14/2023
7.0.2 396,042 1/10/2023
7.0.1 264,617 12/13/2022
7.0.0 456,814 11/7/2022
7.0.0-rc.2.22476.2 1,798 10/11/2022
7.0.0-rc.1.22427.2 7,257 9/14/2022
7.0.0-preview.7.22376.6 1,012 8/9/2022
7.0.0-preview.6.22330.3 1,247 7/12/2022
7.0.0-preview.5.22303.8 1,161 6/14/2022
7.0.0-preview.4.22251.1 1,448 5/10/2022
7.0.0-preview.3.22178.4 2,787 4/13/2022
7.0.0-preview.2.22153.2 1,394 3/14/2022
7.0.0-preview.1.22109.13 891 2/17/2022
6.0.36 95,792 11/12/2024
6.0.35 26,777 10/8/2024
6.0.33 21,124 8/13/2024
6.0.32 18,492 7/9/2024
6.0.31 46,292 5/28/2024
6.0.30 32,199 5/14/2024
6.0.29 57,316 4/9/2024
6.0.28 25,849 3/12/2024
6.0.27 66,981 2/13/2024
6.0.26 71,549 1/9/2024
6.0.25 267,751 11/14/2023
6.0.24 70,430 10/24/2023
6.0.23 25,692 10/10/2023
6.0.22 52,107 9/12/2023
6.0.21 79,902 8/8/2023
6.0.20 118,368 7/11/2023
6.0.19 38,975 6/22/2023
6.0.18 51,254 6/13/2023
6.0.16 214,583 4/11/2023
6.0.15 166,371 3/14/2023
6.0.14 214,487 2/14/2023
6.0.13 229,061 1/10/2023
6.0.12 126,879 12/13/2022
6.0.11 299,159 11/7/2022
6.0.10 510,149 10/11/2022
6.0.9 391,521 9/13/2022
6.0.8 422,504 8/9/2022
6.0.7 415,619 7/12/2022
6.0.6 508,083 6/14/2022
6.0.5 552,337 5/10/2022
6.0.4 361,925 4/11/2022
6.0.3 444,154 3/8/2022
6.0.2 368,633 2/8/2022
6.0.1 758,092 12/14/2021
6.0.0 805,858 11/8/2021
6.0.0-rc.2.21480.10 3,173 10/12/2021
6.0.0-rc.1.21452.15 2,629 9/14/2021
6.0.0-preview.7.21378.6 1,425 8/10/2021
6.0.0-preview.6.21355.2 1,454 7/14/2021
6.0.0-preview.5.21301.17 2,595 6/15/2021
6.0.0-preview.4.21253.5 1,110 5/24/2021
6.0.0-preview.3.21201.13 5,000 4/8/2021
6.0.0-preview.2.21154.6 3,656 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 2,759 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 71,084 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 17,968 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 37,138 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 29,758 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 64,943 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 59,848 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 168,237 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 254,526 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 240,950 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 194,476 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 268,978 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 185,539 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 268,882 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 150,358 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 198,867 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 355,520 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 142,832 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 213,083 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 3,335 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 3,799 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 1,992 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 1,591 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 1,781 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 1,768 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 1,478 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.2 1,546 4/23/2020 5.0.0-preview.3.20215.2 is deprecated because it is no longer maintained.
5.0.0-preview.2.20160.3 1,802 4/2/2020 5.0.0-preview.2.20160.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20120.4 1,070 3/16/2020 5.0.0-preview.1.20120.4 is deprecated because it is no longer maintained.
3.1.32 50,672 12/13/2022
3.1.31 15,096 11/8/2022
3.1.30 24,505 10/11/2022
3.1.29 12,410 9/13/2022
3.1.28 15,356 8/9/2022
3.1.27 19,388 7/12/2022
3.1.26 20,653 6/14/2022
3.1.25 24,676 5/10/2022
3.1.24 29,937 4/11/2022
3.1.23 37,943 3/8/2022
3.1.22 74,393 12/14/2021
3.1.21 233,676 11/7/2021
3.1.20 46,363 10/11/2021
3.1.19 51,443 9/14/2021
3.1.18 70,408 8/10/2021
3.1.17 53,686 7/13/2021
3.1.16 88,228 6/8/2021
3.1.15 144,070 5/11/2021
3.1.14 123,396 4/6/2021
3.1.13 118,622 3/9/2021
3.1.12 199,637 2/9/2021
3.1.11 1,669,356 1/12/2021
3.1.10 203,619 11/9/2020
3.1.9 359,643 10/13/2020
3.1.8 692,687 9/8/2020
3.1.7 448,417 8/11/2020
3.1.6 381,971 7/14/2020
3.1.5 516,795 6/9/2020
3.1.4 280,734 5/12/2020
3.1.3 858,388 3/24/2020
3.1.2 553,774 2/18/2020
3.1.1 481,727 1/14/2020
3.1.0 545,647 12/3/2019
3.1.0-preview3.19553.2 1,556 11/13/2019 3.1.0-preview3.19553.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19525.4 937 11/1/2019 3.1.0-preview2.19525.4 is deprecated because it is no longer maintained.
3.1.0-preview1.19506.1 2,027 10/15/2019 3.1.0-preview1.19506.1 is deprecated because it is no longer maintained.
3.0.3 22,366 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 646,626 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.1 79,022 11/18/2019 3.0.1 is deprecated because it is no longer maintained.
3.0.0 361,850 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19456.10 6,640 9/16/2019 3.0.0-rc1.19456.10 is deprecated because it is no longer maintained.
3.0.0-preview9.19423.4 1,569 9/4/2019 3.0.0-preview9.19423.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.4 46,658 8/13/2019 3.0.0-preview8.19405.4 is deprecated because it is no longer maintained.
3.0.0-preview7.19362.4 2,954 7/23/2019 3.0.0-preview7.19362.4 is deprecated because it is no longer maintained.
3.0.0-preview6.19304.6 1,944 6/12/2019 3.0.0-preview6.19304.6 is deprecated because it is no longer maintained.
3.0.0-preview5.19227.9 1,388 5/6/2019 3.0.0-preview5.19227.9 is deprecated because it is no longer maintained.
3.0.0-preview4.19216.2 1,048 4/18/2019 3.0.0-preview4.19216.2 is deprecated because it is no longer maintained.
3.0.0-preview3.19153.1 1,420 3/6/2019 3.0.0-preview3.19153.1 is deprecated because it is no longer maintained.
3.0.0-preview.19074.2 1,140 1/29/2019 3.0.0-preview.19074.2 is deprecated because it is no longer maintained.
3.0.0-preview.18572.1 1,418 12/4/2018 3.0.0-preview.18572.1 is deprecated because it is no longer maintained.
2.2.5 4,084,058 5/14/2019 2.2.5 is deprecated because it is no longer maintained.
2.2.0 1,684,189 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 21,568 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 7,203 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 5,962 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.1 4,385,473 6/18/2018
2.1.0 1,539,824 5/29/2018
2.1.0-rc1-final 14,741 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 14,329 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 34,257 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.2 3,823,660 5/7/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 3,491,024 3/13/2018 2.0.1 is deprecated because it is no longer maintained.
2.0.0 9,848,102 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,819 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 7,416 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.2 157,329 5/9/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 54,175 3/6/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 52,439 11/16/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview1-final 13,435 10/24/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.