I'm using the latest NLog, ASP.NET Core, EF Core....I wrote a custom log target which saves via EF:...public class MyEFTarget : TargetWithLayout
private readonly IMyContext _context;
public MyEFTarget(IMyContext context) : base()
I use nlog and following setting to log sql queries:...<logger name="Microsoft.EntityFrameworkCore.*"
minlevel="Trace" writeTo="sqllogfile" final="true" />
...It works as expected, but doesn't log parameter values, the queries look like this:...2...
I'm getting a little confused with how to log the generated SQL with asp.net core 2 and EntityFrameworkCore 2 and the correct way to go about it....After reading the this ...link... from the MS docs it is saying that I should add during the services confi...