LogFlake.Client.AspNetCore 1.8.3

dotnet add package LogFlake.Client.AspNetCore --version 1.8.3                
NuGet\Install-Package LogFlake.Client.AspNetCore -Version 1.8.3                
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="LogFlake.Client.AspNetCore" Version="1.8.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LogFlake.Client.AspNetCore --version 1.8.3                
#r "nuget: LogFlake.Client.AspNetCore, 1.8.3"                
#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 LogFlake.Client.AspNetCore as a Cake Addin
#addin nuget:?package=LogFlake.Client.AspNetCore&version=1.8.3

// Install LogFlake.Client.AspNetCore as a Cake Tool
#tool nuget:?package=LogFlake.Client.AspNetCore&version=1.8.3                

LogFlake Client ASP.NET Core Version

This repository contains the sources for the client-side components of the LogFlake product suite for applications logs and performance collection for ASP.NET applications.

🏠 LogFlake Website | 🔥 CloudPhoenix Website

Downloads

NuGet Package Name Version Downloads
LogFlake.Client.AspNetCore NuGet Version NuGet Downloads

Dependencies

This package depends on LogFlake.Client.NetCore.
Please refer to the documentation of that package for usage instructions.

Usage

  1. [Optional] If you want to customize some automatic logs from the middleware, add the following section to your secrets.json file:
"LogFlakeMiddlewareSettings": {
    "LogRequest": true,
    "LogResponse": true,
    "LogNotFoundErrors": true,
},

All of them are optional, if a boolean property it's missing, the default value is false;

  1. Create a class (name it something like ConfigureLogFlakeMiddlewareOptions) that implements IConfigureOptions<LogFlakeMiddlewareOptions> and configure each property;
  2. Register your class as a Singleton:
services.AddSingleton<IConfigureOptions<LogFlakeMiddlewareOptions>, ConfigureLogFlakeMiddlewareOptions>();
  1. After calling services.AddLogFlake(configuration);, add the following line of code:
services.ConfigureLogFlakeMiddlewareOptions(configuration);

Note: You can choose between a Guid, a TraceIdentifier or a Custom correlation id.

Note: In order to use a Custom correlation id you must implement and register ICorrelationService interface (suggestion: as a AddScoped). 5. Register the middleware on your WebApplication

app.UseLogFlakeMiddleware();
  1. If you need to add more parameter to log entries generated by the Middleware (such as data from Claims), you need to implement IParameterService interface and register as a Scoped before the services.ConfigureLogFlakeMiddlewareOptions(configuration); invocation.
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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.8.3 165 11/5/2024
1.8.2 77 10/31/2024
1.8.1 332 10/4/2024
1.8.0 100 10/4/2024
1.7.0 137 10/2/2024
1.6.1 102 9/30/2024
1.6.0 174 7/17/2024
1.5.5 309 6/19/2024
1.5.4 117 6/18/2024
1.5.3 117 6/13/2024
1.5.2 105 6/12/2024
1.5.1 104 6/7/2024
1.5.0 110 6/5/2024