I have a legacy code that is using dapper's QueryAsync() on DbContext's dbconnection:
var connection = _context.GetConnection();
await connection.QueryAsync<Guid>(query, parameters);
How do I enable logging? Ideally I would like also SQL Dependencies to be logged as well (ApplicationInsights).