I am trying to turn off all the logs except the logs I put in directly in my application.
I see a lot of http post and get calls from Blazor.
How can I ignore those?
HTTP "POST" "/_blazor/negotiate" responded 200 in 0.2372 ms
HTTP "GET" "/_blazor/initializers" responded 200 in 0.1806 ms
HTTP "GET" "/_framework/blazor.web.js" responded 304 in 0.0920 ms
HTTP "POST" "/_blazor/disconnect" responded 200 in 0.6568 ms
HTTP "GET" "/_blazor" responded 101 in 208.2413 ms
HTTP "GET" "/Account/Login" responded 200 in 7.2417 ms
HTTP "GET" "/" responded 200 in 2.4507 ms
HTTP "POST" "/_blazor/negotiate" responded 200 in 0.3406 ms
HTTP "POST" "/_blazor/negotiate" responded 200 in 0.2164 ms
HTTP "GET" "/_blazor/initializers" responded 200 in 0.1783 ms
HTTP "GET" "/_framework/blazor.web.js" responded 304 in 0.0720 ms
Here is my current appsettings.json file:
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning",
"Microsoft.AspNetCore.Hosting.Diagnostics": "Warning",
"Microsoft.AspNetCore.Mvc.RazorPages": "Warning",
"Microsoft.AspNetCore.Mvc.ViewFeatures": "Warning",
"Microsoft.AspNetCore.StaticFiles": "Warning",
// The migration is not applied, so what?
"Microsoft.EntityFrameworkCore.Migrations": "Warning",
// DbCommand executed, so what?
"Microsoft.EntityFrameworkCore.Database": "Warning",
"Microsoft.AspNetCore.Mvc.Infrastructure": "Warning"
}
},
In Program.cs
Full appsetting.json for Serilog