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
<PackageReference Include="LogFlake.Client.AspNetCore" Version="1.8.3" />
paket add LogFlake.Client.AspNetCore --version 1.8.3
#r "nuget: LogFlake.Client.AspNetCore, 1.8.3"
// 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
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 |
Dependencies
This package depends on LogFlake.Client.NetCore.
Please refer to the documentation of that package for usage instructions.
Usage
- [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
;
- Create a class (name it something like
ConfigureLogFlakeMiddlewareOptions
) that implementsIConfigureOptions<LogFlakeMiddlewareOptions>
and configure each property; - Register your class as a Singleton:
services.AddSingleton<IConfigureOptions<LogFlakeMiddlewareOptions>, ConfigureLogFlakeMiddlewareOptions>();
- 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 yourWebApplication
app.UseLogFlakeMiddleware();
- 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 theservices.ConfigureLogFlakeMiddlewareOptions(configuration);
invocation.
Product | Versions 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. |
-
.NETStandard 2.1
- LogFlake.Client.NetCore (>= 1.8.3)
- Microsoft.AspNetCore.Diagnostics (>= 2.2.0)
- Microsoft.AspNetCore.Http (>= 2.2.2)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.AspNetCore.Http.Extensions (>= 2.2.0)
- Microsoft.AspNetCore.Http.Features (>= 5.0.17)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.