4. Other Features Flashcards

1
Q

How do you add support for EF logging in an MVC web app?

A
  1. At ConfigureServices in Startup.cs, use the IServiceCollection object to call its AddLogging method.
  2. Add a new parameter of type ILoggerFactory to the Configure method in Startup.cs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly