4. Other Features Flashcards
1
Q
How do you add support for EF logging in an MVC web app?
A
- At
ConfigureServices
inStartup.cs
, use theIServiceCollection
object to call itsAddLogging
method. - Add a new parameter of type
ILoggerFactory
to theConfigure
method inStartup.cs