Make Debugging Easier With EF Core Query Logging #shorts

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

You can also use appsettings config's logging section:

"Logging": {
"LogLevel": {
"Default": "Error",
"Microsoft": "Error",
"Information"
}
},

AJIexa
Автор

Excellent tip.
That would help with my EF Joins.

Don-iivm
Автор

What about with using Serilog? I have never been able to get EF Core logging to work in a project where I have configured Serilog.

justinerdmier
Автор

Under the hood ef core log into the console by default when environment is development

olehfilipchuk
Автор

Yes I do this but conditionally 😂 Only if the environment is development 😊

SureshKumar-rzdn
Автор

Love your channel friend. ❤ Thank you for sharing

Dpaz
Автор

How about if we are in winforms and instead of Console.WriteLine we need to use Debug.WriteLine which is not accepted and produces an error

niangel