Update default logging minimum levels to reduce spam.

This commit is contained in:
Jared Goodwin 2024-03-11 07:20:09 -07:00
parent 7478d6333e
commit e2ac72502d
2 changed files with 5 additions and 2 deletions

View File

@ -6,15 +6,16 @@
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware": "Information",
"Default": "Information"
"Microsoft.AspNetCore": "Warning"
}
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.AspNetCore": "Warning",
"System": "Warning"
}
}

View File

@ -25,6 +25,8 @@ services:
- ASPNETCORE_HTTP_PORTS=5000
# Other ASP.NET Core configurations can be overridden here, such as Logging.
# See https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0
- Serilog__MinimumLevel__Override__Microsoft.AspNetCore=Warning
- Serilog__MinimumLevel__Override__System=Warning
# Values for DbProvider are SQLite, SQLServer, and PostgreSQL.
- Remotely_ApplicationOptions__DbProvider=SQLite