Skip to content

Conversation

@ncipollina
Copy link
Contributor

Summary

  • convert ILogger extension helpers to C# extension declarations across logging levels and base helper
  • bump package version to 1.1.5
  • enable MTP runner flags in CI workflows and mark tests present

Testing

  • dotnet run --project test/LayeredCraft.StructuredLogging.Tests/LayeredCraft.StructuredLogging.Tests.csproj -f net8.0
  • dotnet run --project test/LayeredCraft.StructuredLogging.Tests/LayeredCraft.StructuredLogging.Tests.csproj -f net9.0
  • dotnet run --project test/LayeredCraft.StructuredLogging.Tests/LayeredCraft.StructuredLogging.Tests.csproj -f net10.0

@ncipollina ncipollina merged commit 519472c into main Dec 10, 2025
1 check passed
@ncipollina ncipollina deleted the feature/extension-blocks branch December 10, 2025 14:05
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 11 to 13
/// <param name="logger">The logger instance.</param>
/// <param name="message">The log message.</param>
/// <example>
/// <code>
/// logger.Verbose("Method entry: ProcessOrder");
/// </code>
/// </example>
public static void Verbose(this ILogger logger, string? message)
extension(ILogger logger)
{

Choose a reason for hiding this comment

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

P0 Badge Extension declaration syntax breaks build

All logging helpers were rewritten using extension(ILogger logger) blocks and instance methods (e.g., Verbose(...) here), but the project still sets <LangVersion>default and targets netstandard2.0/net8/net9/net10, which only support classic static extension methods with a this ILogger parameter. With the current language version this syntax is not recognized and logger has no definition, so the library no longer compiles for any target (dotnet build will fail before tests run). Consider reverting to standard extension methods or enabling a preview language that supports extension declarations.

Useful? React with 👍 / 👎.

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.

2 participants