Looking at this similar question I need to do the same thing, that is I want the SQL to be copied to my Output, but I need it done for EF Core / 7
I tried adding the LogFactory
as is shown in this example
But that did not produce the SQL output either... what am I missing?