Info
Version: | 1.0.1 |
Author(s): | Capgemini Valencia Spain |
Last Update: | Friday, September 7, 2018 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://oasp.github.io/ |
NuGet Url: | https://www.nuget.org/packages/OASP4Net.Infrastructure.Log |
Install
Install-Package OASP4Net.Infrastructure.Log
dotnet add package OASP4Net.Infrastructure.Log
paket add OASP4Net.Infrastructure.Log
OASP4Net.Infrastructure.Log Download (Unzip the "nupkg" after downloading)
Dependencies
- 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)
Tags
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
}.