DapperLib / DapperLib/Dapper

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

Open
#2,161 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
18.4k
Forks
3.7k
Avg merge
5h 8m
Merged PRs (30d)
1

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The proposal mentions Dapper, HttpClientFactory, ILogger, LogDebug, and SQL statements, but names no files, tests, or integration point. Start by reviewing how Dapper executes commands and how Microsoft.Extensions.Logging is expected to be injected, then define the logging API and verify that SQL statements and request details are logged as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
backend-api-design, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.