OASP4Net.Infrastructure.Log
1.0.1
dotnet add package OASP4Net.Infrastructure.Log --version 1.0.1
NuGet\Install-Package OASP4Net.Infrastructure.Log -Version 1.0.1
<PackageReference Include="OASP4Net.Infrastructure.Log" Version="1.0.1" />
paket add OASP4Net.Infrastructure.Log --version 1.0.1
#r "nuget: OASP4Net.Infrastructure.Log, 1.0.1"
// Install OASP4Net.Infrastructure.Log as a Cake Addin
#addin nuget:?package=OASP4Net.Infrastructure.Log&version=1.0.1
// Install OASP4Net.Infrastructure.Log as a Cake Tool
#tool nuget:?package=OASP4Net.Infrastructure.Log&version=1.0.1
Setup:
on startup.cs:
app-->IApplicationBuilder
app.UseMiddleware(typeof(LogExceptionHandlingMiddleware));
LogConfiguration.ConfigureLog(strring ApplicationPath);
Use the following configuration:
"Log": {
"File": {
"LogFolder": "Logs",
"LogFile": "log-{0}.txt"
},
"SqliteDatabase": "log.db",
"SeqLogServerHost": "http://127.0.0.1:5341/",
"GrayLog": {
"GrayLogHost": "127.0.0.1",
"GrayLogPort": "12201",
"GrayLogProtocol": "UDP",
"UseSecureConnection": true,
"UseAsyncLogging": true,
"RetryCount": 5,
"RetryIntervalMs": 15,
"MaxUdpMessageSize": 8192
},
"UseAOPTrace": true
}
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- Serilog (>= 2.7.1)
- Serilog.Sinks.File (>= 4.0.0)
- Serilog.Sinks.Graylog.Extended (>= 1.0.1)
- Serilog.Sinks.Seq (>= 4.0.0)
- Serilog.Sinks.SQLite.NetStandard (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.