chore(api): configure Serilog settings and logging packages

This commit is contained in:
2026-10-10 16:53:03 +02:00
parent 1c2c9cf3b8
commit 1754aa64a2
3 changed files with 33 additions and 1 deletions

View File

@@ -8,8 +8,15 @@
<ItemGroup>
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.1" />
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="10.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
<PackageReference Include="Serilog.Sinks.SQLite" Version="7.0.0" />
<PackageReference Include="Serilog.UI" Version="3.2.0" />
<PackageReference Include="Serilog.UI.SqliteProvider" Version="1.1.0" />
<PackageReference Include="Scalar.AspNetCore" Version="2.17.14" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.3.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>
<ItemGroup>

View File

@@ -1,4 +1,15 @@
{
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore": "Warning",
"System": "Warning"
}
}
},
"Logging": {
"LogLevel": {
"Default": "Information",

View File

@@ -1,4 +1,15 @@
{
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore": "Warning",
"System": "Warning"
}
}
},
"ConnectionStrings": {
"TaskFlowDb": "Server=SDD-VHP04-SQL19\\DD_TESTING01;Database=DD_ECM;User Id=sa;Password=123456789dD!;Encrypt=false;TrustServerCertificate=True;"
},
@@ -12,6 +23,9 @@
"CommandTimeoutSeconds": 30,
"WorkflowListingObjectType": "Ferdinand"
},
"Application": {
"LogDirectory": "logs"
},
"Logging": {
"LogLevel": {
"Default": "Information",