Skip to content

Add logging or query interception support in Repository layer #16

@ismailbarankarasu

Description

@ismailbarankarasu

Hi

First of all, thank you for this clean and simple implementation of the Unit of Work pattern with Dapper — it's really helpful and well-structured.

I was wondering if you have any plans to add a basic logging or diagnostic mechanism to the repository layer?

For example, it would be helpful to:

  • Log the raw SQL queries being executed
  • See the parameters passed to those queries
  • Track when transactions start and end

Such a feature could be useful for debugging and monitoring in production environments. Maybe it could be implemented as an optional ILogger injection or a lightweight interceptor interface?

Let me know your thoughts — happy to contribute as well if needed.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions