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

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Logging.AzureAppServices.
dotnet add package Microsoft.Extensions.Logging.AzureAppServices --version 10.0.0-preview.2.25164.1                
NuGet\Install-Package Microsoft.Extensions.Logging.AzureAppServices -Version 10.0.0-preview.2.25164.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.0-preview.2.25164.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Extensions.Logging.AzureAppServices --version 10.0.0-preview.2.25164.1                
#r "nuget: Microsoft.Extensions.Logging.AzureAppServices, 10.0.0-preview.2.25164.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.
// Install Microsoft.Extensions.Logging.AzureAppServices as a Cake Addin
#addin nuget:?package=Microsoft.Extensions.Logging.AzureAppServices&version=10.0.0-preview.2.25164.1&prerelease

// Install Microsoft.Extensions.Logging.AzureAppServices as a Cake Tool
#tool nuget:?package=Microsoft.Extensions.Logging.AzureAppServices&version=10.0.0-preview.2.25164.1&prerelease                

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. 
.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/aspnetcore/tree/763b4ef31ca4df6dae07c7ee8f39ea259b6980fa

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 5 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 9 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 19, React 19, Vue 3.5, BFF with YARP, NextJs 15, 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
Version Downloads Last updated
10.0.0-preview.2.25164.1 197 2 days ago
10.0.0-preview.1.25120.3 1,147 23 days ago
9.0.3 9,156 9 days ago
9.0.2 56,856 a month ago
9.0.1 87,968 2 months ago
9.0.0 170,813 4 months ago
9.0.0-rc.2.24474.3 4,438 5 months ago
9.0.0-rc.1.24452.1 2,318 6 months ago
9.0.0-preview.7.24406.2 4,267 7 months ago
9.0.0-preview.6.24328.4 3,107 8 months ago
9.0.0-preview.5.24306.11 2,323 9 months ago
9.0.0-preview.4.24267.6 1,312 10 months ago
9.0.0-preview.3.24172.13 2,658 4/11/2024
9.0.0-preview.2.24128.4 4,800 3/12/2024
9.0.0-preview.1.24081.5 1,759 2/13/2024
8.0.14 3,889 9 days ago
8.0.13 29,372 a month ago
8.0.12 54,110 2 months ago
8.0.11 179,770 4 months ago
8.0.10 396,809 5 months ago
8.0.8 477,534 7 months ago
8.0.7 278,495 8 months ago
8.0.6 380,435 10 months ago
8.0.5 114,902 5/14/2024
8.0.4 435,415 4/9/2024
8.0.3 386,560 3/12/2024
8.0.2 353,021 2/13/2024
8.0.1 405,467 1/9/2024
8.0.0 492,390 11/14/2023
8.0.0-rc.2.23480.2 3,393 10/10/2023
8.0.0-rc.1.23421.29 3,516 9/12/2023
8.0.0-preview.7.23375.9 1,614 8/8/2023
8.0.0-preview.6.23329.11 1,253 7/11/2023
8.0.0-preview.5.23302.2 851 6/13/2023
8.0.0-preview.4.23260.4 3,207 5/16/2023
8.0.0-preview.3.23177.8 2,392 4/11/2023
8.0.0-preview.2.23153.2 2,454 3/14/2023
8.0.0-preview.1.23112.2 1,634 2/21/2023
7.0.20 15,083 10 months ago
7.0.19 1,946 5/14/2024
7.0.18 10,735 4/9/2024
7.0.17 10,036 3/12/2024
7.0.16 15,225 2/13/2024
7.0.15 34,908 1/9/2024
7.0.14 66,502 11/14/2023
7.0.13 127,114 10/24/2023
7.0.12 70,598 10/10/2023
7.0.11 124,839 9/12/2023
7.0.10 368,455 8/8/2023
7.0.9 143,355 7/11/2023
7.0.8 97,583 6/22/2023
7.0.7 68,067 6/13/2023
7.0.5 399,810 4/11/2023
7.0.4 174,186 3/14/2023
7.0.3 241,883 2/14/2023
7.0.2 371,015 1/10/2023
7.0.1 245,458 12/13/2022
7.0.0 416,255 11/7/2022
7.0.0-rc.2.22476.2 1,599 10/11/2022
7.0.0-rc.1.22427.2 6,792 9/14/2022
7.0.0-preview.7.22376.6 802 8/9/2022
7.0.0-preview.6.22330.3 1,061 7/12/2022
7.0.0-preview.5.22303.8 964 6/14/2022
7.0.0-preview.4.22251.1 1,238 5/10/2022
7.0.0-preview.3.22178.4 2,468 4/13/2022
7.0.0-preview.2.22153.2 1,156 3/14/2022
7.0.0-preview.1.22109.13 676 2/17/2022
6.0.36 17,953 4 months ago
6.0.35 10,033 5 months ago
6.0.33 15,921 7 months ago
6.0.32 11,912 8 months ago
6.0.31 22,629 10 months ago
6.0.30 21,694 5/14/2024
6.0.29 34,967 4/9/2024
6.0.28 20,179 3/12/2024
6.0.27 42,154 2/13/2024
6.0.26 58,189 1/9/2024
6.0.25 201,295 11/14/2023
6.0.24 54,680 10/24/2023
6.0.23 20,361 10/10/2023
6.0.22 46,552 9/12/2023
6.0.21 64,107 8/8/2023
6.0.20 105,217 7/11/2023
6.0.19 33,607 6/22/2023
6.0.18 46,168 6/13/2023
6.0.16 198,661 4/11/2023
6.0.15 149,374 3/14/2023
6.0.14 189,081 2/14/2023
6.0.13 205,249 1/10/2023
6.0.12 114,947 12/13/2022
6.0.11 270,973 11/7/2022
6.0.10 460,318 10/11/2022
6.0.9 361,024 9/13/2022
6.0.8 390,481 8/9/2022
6.0.7 391,669 7/12/2022
6.0.6 447,965 6/14/2022
6.0.5 520,688 5/10/2022
6.0.4 339,817 4/11/2022
6.0.3 422,207 3/8/2022
6.0.2 338,740 2/8/2022
6.0.1 693,982 12/14/2021
6.0.0 760,120 11/8/2021
6.0.0-rc.2.21480.10 2,975 10/12/2021
6.0.0-rc.1.21452.15 2,411 9/14/2021
6.0.0-preview.7.21378.6 1,169 8/10/2021
6.0.0-preview.6.21355.2 1,222 7/14/2021
6.0.0-preview.5.21301.17 2,411 6/15/2021
6.0.0-preview.4.21253.5 884 5/24/2021
6.0.0-preview.3.21201.13 4,794 4/8/2021
6.0.0-preview.2.21154.6 3,271 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,410 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 58,280 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 14,284 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 33,304 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 25,324 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 58,974 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 54,646 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 161,142 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 244,831 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 234,007 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 185,364 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 261,567 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 177,347 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 252,084 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 143,631 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 191,486 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 345,268 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 137,617 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 188,297 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 3,024 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,434 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,702 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,296 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,453 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,446 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,107 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,249 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,505 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 799 3/16/2020 5.0.0-preview.1.20120.4 is deprecated because it is no longer maintained.
3.1.32 35,471 12/13/2022
3.1.31 11,482 11/8/2022
3.1.30 20,838 10/11/2022
3.1.29 8,787 9/13/2022
3.1.28 11,625 8/9/2022
3.1.27 15,748 7/12/2022
3.1.26 16,961 6/14/2022
3.1.25 19,832 5/10/2022
3.1.24 24,887 4/11/2022
3.1.23 33,068 3/8/2022
3.1.22 65,346 12/14/2021
3.1.21 229,764 11/7/2021
3.1.20 41,999 10/11/2021
3.1.19 46,430 9/14/2021
3.1.18 63,657 8/10/2021
3.1.17 49,634 7/13/2021
3.1.16 84,251 6/8/2021
3.1.15 140,315 5/11/2021
3.1.14 118,602 4/6/2021
3.1.13 112,892 3/9/2021
3.1.12 195,063 2/9/2021
3.1.11 1,145,601 1/12/2021
3.1.10 196,072 11/9/2020
3.1.9 347,324 10/13/2020
3.1.8 674,852 9/8/2020
3.1.7 431,132 8/11/2020
3.1.6 366,362 7/14/2020
3.1.5 508,075 6/9/2020
3.1.4 272,163 5/12/2020
3.1.3 829,188 3/24/2020
3.1.2 538,331 2/18/2020
3.1.1 469,627 1/14/2020
3.1.0 522,001 12/3/2019
3.1.0-preview3.19553.2 1,251 11/13/2019 3.1.0-preview3.19553.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19525.4 642 11/1/2019 3.1.0-preview2.19525.4 is deprecated because it is no longer maintained.
3.1.0-preview1.19506.1 1,738 10/15/2019 3.1.0-preview1.19506.1 is deprecated because it is no longer maintained.
3.0.3 18,166 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 642,865 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.1 75,169 11/18/2019 3.0.1 is deprecated because it is no longer maintained.
3.0.0 331,650 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19456.10 6,346 9/16/2019 3.0.0-rc1.19456.10 is deprecated because it is no longer maintained.
3.0.0-preview9.19423.4 1,270 9/4/2019 3.0.0-preview9.19423.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.4 29,962 8/13/2019 3.0.0-preview8.19405.4 is deprecated because it is no longer maintained.
3.0.0-preview7.19362.4 2,658 7/23/2019 3.0.0-preview7.19362.4 is deprecated because it is no longer maintained.
3.0.0-preview6.19304.6 1,636 6/12/2019 3.0.0-preview6.19304.6 is deprecated because it is no longer maintained.
3.0.0-preview5.19227.9 1,121 5/6/2019 3.0.0-preview5.19227.9 is deprecated because it is no longer maintained.
3.0.0-preview4.19216.2 759 4/18/2019 3.0.0-preview4.19216.2 is deprecated because it is no longer maintained.
3.0.0-preview3.19153.1 1,109 3/6/2019 3.0.0-preview3.19153.1 is deprecated because it is no longer maintained.
3.0.0-preview.19074.2 873 1/29/2019 3.0.0-preview.19074.2 is deprecated because it is no longer maintained.
3.0.0-preview.18572.1 1,127 12/4/2018 3.0.0-preview.18572.1 is deprecated because it is no longer maintained.
2.2.5 3,928,576 5/14/2019 2.2.5 is deprecated because it is no longer maintained.
2.2.0 1,596,423 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 21,084 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 6,695 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 5,460 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.1 4,191,046 6/18/2018
2.1.0 1,513,160 5/29/2018
2.1.0-rc1-final 14,004 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 13,587 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 33,487 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.2 3,667,204 5/7/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 3,380,996 3/13/2018 2.0.1 is deprecated because it is no longer maintained.
2.0.0 9,485,493 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 54,977 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 6,867 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.2 152,708 5/9/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 50,136 3/6/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 47,447 11/16/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview1-final 12,897 10/24/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.