Hi, found the issue. With Serilog the settings should be similar to the following:
"Serilog": {
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"System": "Information",
"Microsoft": "Information",
"Microsoft.AspNetCore.Mvc.Infrastructure": "Warning",
"Elastic.Apm": "Fatal"
}
},
The minimum Serilog level is Fatal which works for me (couldn't find 'None' for Serilog).
So now I have no Debug logs anymore, as expected. Suggest to add this to the documentation.
Many thanks everyone for the support.