/ef-logging

Information on how to set up logging in EF Core

Primary LanguageC#

EF Core Logging

WEB

  1. dotnet new console
  2. dotnet add package Microsoft.EntityFrameworkCore.SqlServer
  3. sqllocaldb create ef_core_logging
  4. Set up entities and DB context
  5. dotnet add package Microsoft.Extensions.Logging.Console

To-Do

Update to include the alternative

In some other EF repos I use a different way to log, which I should show here as well.