Skip to content

Enhance logging with structured messages and TDbContext context - #15

Merged
arichika merged 9 commits into
masterfrom
feature/logging-enhance
Jul 1, 2026
Merged

Enhance logging with structured messages and TDbContext context#15
arichika merged 9 commits into
masterfrom
feature/logging-enhance

Conversation

@arichika

@arichika arichika commented Jun 29, 2026

Copy link
Copy Markdown
Member

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-preview.2.

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`.
@arichika arichika self-assigned this Jun 29, 2026
arichika added 2 commits June 29, 2026 19:59
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
arichika force-pushed the feature/logging-enhance branch from 6371078 to 98ad51c Compare June 29, 2026 11:10
@arichika
arichika force-pushed the feature/logging-enhance branch from 98ad51c to 034ea46 Compare June 30, 2026 04:44
arichika added 5 commits June 30, 2026 14:22
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.
@arichika
arichika merged commit 3f17d3a into master Jul 1, 2026
1 check passed
@arichika
arichika deleted the feature/logging-enhance branch July 1, 2026 05:40
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.

1 participant