Visitar URL original
Proposal: add support for ILogger (Microsoft.Extensions.Logging) · Issue #2161 · DapperLib/Dapper · GitHub
Skip to content

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

Open

Description

@FrancescoBonizzi

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!

Activity

  1. wizofaus commented on Dec 1, 2025

    @wizofaus

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions