Dapper icon indicating copy to clipboard operation
Dapper copied to clipboard

Proposal: add support for ILogger (Microsoft.Extensions.Logging)

Open FrancescoBonizzi opened this issue 8 months ago • 1 comments

Since HttpClientFactory injects an ILogger and uses LogDebug to log requests and responses, it would be helpful to do the same with Dapper to log SQL statements. It could be a game changer when debugging!

FrancescoBonizzi avatar Apr 28 '25 07:04 FrancescoBonizzi

Yep, definitely. That Dapper doesn't appear to have anything like the command interceptor in EF that allows easily logging the full SQL/parameter values when exceptions occur is a significant drawback.

wizofaus avatar Dec 01 '25 22:12 wizofaus