WebApr 2, 2024 · LoggerMessageAttribute extension to support Exception messages · Issue #84233 · dotnet/runtime · GitHub dotnet / runtime Public Notifications Fork 3.8k Star 11.6k Code Issues 5k+ Pull requests 229 Discussions Actions Projects 42 Security 9 Insights New issue LoggerMessageAttribute extension to support Exception messages #84233 Open WebJun 22, 2024 · Fixes: #51927 - Adds SkipEnabledCheck #52277 - Properly handle null or misconfigured input #52223 - When event id is not set, it will default to -1 #52276 - Adds LoggerMessageAttribute ctor overload Contributes to: #52549 /cc @gfoidl
GitHub - dotnet/core: Home repository for .NET Core
WebASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux. - Commits · dotnet/aspnetcore WebNov 18, 2024 · Here I would like to suggest a few approaches: Ignore any characters after { but before parameter name that do not match to variable name rule Ignore @ (too specific for Serilog) Introduce a special character that can be used in parameter name to skip any check from source generator. cranmore secondary school
[API Proposal]: Logging Source Generator - GitHub
WebFeb 1, 2024 · As part of issue #62644 we fixed compile errors with using ref or in. But for out usage, we would need to add a diagnostic that explains out usage is not supported for LoggerMessageAttribute annotated logging methods. Proposal The propos... WebAttribute LoggerMessageAttribute Attributes Attribute Usage Attribute Remarks The method this attribute is applied to: Must be a partial method. Must return void. Must not be generic. Must have an ILogger as one of its parameters. Must have a LogLevel as one of its parameters. None of the parameters can be generic. Constructors Properties Methods WebEventSource has the EventAttribute as the attribute, I'd prefer a LoggerMessage attribute since that mathes the type we have today (LoggerMessage). We might also need a [Logger] attribute since we don't have a base class but it would be a way to identify the static class to generate methods into. cranmore season pass