I upgraded to .net core 2.2 and EF 2.2 as well. Now when i fetch a table from DbSet, for each row i have in my table there a log line and it's taking forever. How to disable this since i didnt have this logs in .net core 2.0 ?
ex : for the log line i have this for each row :
[15:58:02 DBG] Context 'BookContext' started tracking 'Book' entity.
Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values.
And since my table has 23000 records, i have 23000 log line as well !
My serilog log config looks like this :
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Debug"
}
},
Microsoft.*
to warning or information.Microsoft.EntityFrameworkCore.ChangeTracking
category. Probably something like"Microsoft.EntityFrameworkCore.ChangeTracking": "None"