mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
fix(logging): Set the default minimum level to Information
Make Serilog configurable and default minimum level to Information [no-ci]
This commit is contained in:
commit
776f5eafc2
4 changed files with 9 additions and 2 deletions
|
@ -75,9 +75,10 @@
|
|||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
|
||||
<PackageReference Include="ncrontab" Version="3.3.0" />
|
||||
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="6.0.0" />
|
||||
<PackageReference Include="Serilog" Version="2.9.0" />
|
||||
<PackageReference Include="Serilog" Version="2.10.0" />
|
||||
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.1" />
|
||||
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
|
||||
<PackageReference Include="Serilog.Settings.Configuration" Version="3.3.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0" />
|
||||
<PackageReference Include="System.Security.Cryptography.Csp" Version="4.3.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="5.0.0-preview.8.20414.8" />
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace Ombi
|
|||
Configuration = builder.Build();
|
||||
|
||||
ILogger config = new LoggerConfiguration()
|
||||
.MinimumLevel.Debug()
|
||||
.ReadFrom.Configuration(Configuration)
|
||||
.WriteTo.RollingFile(Path.Combine(StoragePath.StoragePath.IsNullOrEmpty() ? env.ContentRootPath : StoragePath.StoragePath, "Logs", "log-{Date}.txt"))
|
||||
.CreateLogger();
|
||||
|
||||
|
|
|
@ -8,5 +8,8 @@
|
|||
"System.Net.Http.HttpClient.health-checks": "Information",
|
||||
"HealthChecks": "Information"
|
||||
}
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": "Debug"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
"HealthChecks": "Warning"
|
||||
}
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": "Information"
|
||||
},
|
||||
"ApplicationSettings": {
|
||||
"NotificationService": "https://ombinotifications.azurewebsites.net/api/",
|
||||
"OmbiService": "?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue