Simple EF6-style Logging for EF Core

It took me a while to figure out logging in EF Core, and I missed the simple way you could add logging for EF6. Remember in EF6 it’s as easy as using (var db = new BloggingContext()) { db.Database.Log = s => Console.WriteLine(s); //. . . } This is exacerbated that EF Core doesn’t support…

0