In my web project I'm using ...EF6... and I'd like to log generated SQL for debugging purpose....I'm also using log4net to handle logs, so I'm looking for a way to integrate them together....What's the correct way to achieve this?
I'm trying to log SQL queries into a file using log4net and .NET Core (EF 3.1). ...I tried the following configuration: ...Startup.cs...loggerFactory.AddLog4Net();
...DBContext.s...private readonly ILoggerFactory _loggerFactory;
protected override void ...