LogFlake.Client.AspNetCore
1.6.0
See the version list below for details.
dotnet add package LogFlake.Client.AspNetCore --version 1.6.0
NuGet\Install-Package LogFlake.Client.AspNetCore -Version 1.6.0
<PackageReference Include="LogFlake.Client.AspNetCore" Version="1.6.0" />
paket add LogFlake.Client.AspNetCore --version 1.6.0
#r "nuget: LogFlake.Client.AspNetCore, 1.6.0"
// Install LogFlake.Client.AspNetCore as a Cake Addin #addin nuget:?package=LogFlake.Client.AspNetCore&version=1.6.0 // Install LogFlake.Client.AspNetCore as a Cake Tool #tool nuget:?package=LogFlake.Client.AspNetCore&version=1.6.0
LogFlake Client .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 |
Dependecies
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,
"ClientIdSelector": ""
},
All of them are optional, if a boolean property it's missing, the default value is false
;
ClientIdSelector
should be the key of the OAuth Claim that contains what you consider a client identifier, its value will be added to the log entry as clientId
.
- 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);
- Register the middleare on your
WebApplication
app.UseLogFlakeMiddleware();
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.6.0)
- 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.