Enhance logging with structured messages and TDbContext context - #15
Merged
Conversation
Refactor log calls to utilize structured logging with named parameters instead of string interpolation. Explicitly includes the generic `TDbContext` type in log messages to provide clearer context for transaction and scope operations, facilitating easier debugging and log analysis. Updates the package version to `1.1.1-pre.1`.
The solution file is updated to reflect compatibility with Visual Studio 2022. The reference to `azure-pipelines.yml` is replaced with `.github/workflows/merge-validation.yml` in the solution items, formalizing the shift to GitHub Actions for CI.
Updates the CI build pipeline to use .NET 8 on Windows Server 2025 runners. Also upgrades GitHub Actions for `checkout` and `setup-dotnet` to their latest major versions and ensures the `N2SqlLocalDB` instance is explicitly started for consistent builds.
arichika
force-pushed
the
feature/logging-enhance
branch
from
June 29, 2026 11:10
6371078 to
98ad51c
Compare
arichika
force-pushed
the
feature/logging-enhance
branch
from
June 30, 2026 04:44
98ad51c to
034ea46
Compare
Introduce multi-targeting to support the 'net10.0' framework, enabling broader compatibility for projects consuming the library. This also updates the Microsoft.EntityFrameworkCore and Microsoft.EntityFrameworkCore.SqlServer package versions for 'netstandard2.0' to 3.1.32. Dependencies for 'net10.0' are set to 10.0.9.
Updates the `OneWorldDbClient.SampleWeb` project's target framework from `netcoreapp3.1` to `net10.0`. This includes upgrading all related package dependencies, such as ASP.NET Core, Entity Framework Core, Dapper, and Docker tooling. A new dependency for `Newtonsoft.Json` is also added. Additionally, the `Microsoft.NET.Test.Sdk` package is updated to `18.7.0` in the `N2UnitTestBase` and `OneWorldDbClient.Tests` projects.
Updates the pre-release version for `OneWorldDbClient` and `OneWorldDbClient.SqlServer` to reflect current development progress.
…ency Document the addition of multi-targeting support for .NET 10 in the `1.1.1-preview.1` release notes. Also, standardize the display of version numbers in the history section by removing the 'v' prefix for all entries, aligning with common versioning practices.
…red details Introduce `ConnectionStringLength` to `OneWorldDbClientManager` to provide additional context in transaction-related log messages, aiding debugging without exposing sensitive connection string data. Refactor various log messages across `OneWorldDbClientManager`, `OneWorldDbTransaction`, and `OneWorldDbTransactionScope` to consistently use structured logging and include the `TDbContext` type. This improves log parsing, searchability, and overall debugging experience. Bump package versions to `1.1.1-preview.2` and update `README.md` to reflect these logging enhancements. The `README.md` is now also included in the NuGet packages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor log calls to utilize structured logging with named parameters instead of string interpolation. Explicitly includes the generic
TDbContexttype in log messages to provide clearer context for transaction and scope operations, facilitating easier debugging and log analysis.Updates the package version to
1.1.1-preview.2.