Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe .NET 9 logger message generator support for loggers in primary constructor parameters #41514

Merged

Conversation

kimsey0
Copy link
Contributor

@kimsey0 kimsey0 commented Jun 21, 2024

Summary

This documents the new logger message generator support for loggers in primary constructor parameters that is being introduced with .NET 9 in dotnet/runtime#101660.

Fixes #41084

We could potentially use a primary constructor parameter in the Case-insensitive template name support example too, since it's shorter and avoids boilerplate, but that may make more sense once .NET 9 is actually out.


Internal previews

📄 File 🔗 Preview link
docs/core/extensions/logger-message-generator.md Compile-time logging source generation
docs/fundamentals/syslib-diagnostics/source-generator-overview.md Analyzer diagnostics in .NET 6+

@kimsey0 kimsey0 requested review from IEvangelist and a team as code owners June 21, 2024 09:25
@dotnet-bot dotnet-bot added this to the June 2024 milestone Jun 21, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Jun 21, 2024
@IEvangelist IEvangelist merged commit dd38636 into dotnet:main Jun 26, 2024
11 checks passed
@kimsey0 kimsey0 deleted the logger-message-generator-primary-constructor branch June 26, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document logger message generator support for primary constructor parameters
3 participants