Skip to content

feat(41): enables database query logging with serilog#42

Merged
cihataydin merged 2 commits intomainfrom
41-database-query-logging
Jun 5, 2025
Merged

feat(41): enables database query logging with serilog#42
cihataydin merged 2 commits intomainfrom
41-database-query-logging

Conversation

@cihataydin
Copy link
Owner

  • adds sample controler for test

@cihataydin cihataydin self-assigned this May 19, 2025
@cihataydin cihataydin linked an issue May 19, 2025 that may be closed by this pull request
@cihataydin cihataydin requested a review from Copilot May 19, 2025 13:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces database query logging with Serilog and a sample controller for testing purposes.

  • Updated Infra.csproj to include Serilog and related sink packages.
  • Modified DataContext to configure EF Core query logging using Serilog.
  • Added SampleController to serve as a test endpoint.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Infra/Infra.csproj Added new package references for Serilog and its sinks.
src/Infra/Data/DataContext.cs Configured EF Core to log queries via Serilog in OnConfiguring.
src/Api/Controllers/V1/SampleController.cs Introduced a sample controller for testing purposes.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cihataydin cihataydin merged commit 67854e1 into main Jun 5, 2025
1 check passed
@cihataydin cihataydin deleted the 41-database-query-logging branch June 5, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Database Query Logging

2 participants