How do I turn off the logging done by ASP.NET for each request e.g.
INFO 09:38:41 User profile is available. Using \'C:\\Users\\xxxx xxxx\\AppData\\L
If you're using Serilog to do your .NET Core logging, you can update your appsettings.json file to set the log levels like so:
"Serilog": {
"MinimumLevel": {
"Default": "Verbose",
"Override": {
"Microsoft": "Error",
"System": "Error"
}
},
"Properties": {
"Application": "your-app"
}
}
This allows you to only log errors from System/Microsoft while logging everything else as you'd like.