Skip to content

Optimize by fixing Fix CA1873 Roslyn suggestion#43

Merged
HaGGi13 merged 1 commit into
developfrom
feature/fix-roslyn-ca1873-suggestion
Feb 7, 2026
Merged

Optimize by fixing Fix CA1873 Roslyn suggestion#43
HaGGi13 merged 1 commit into
developfrom
feature/fix-roslyn-ca1873-suggestion

Conversation

@HaGGi13
Copy link
Copy Markdown
Owner

@HaGGi13 HaGGi13 commented Feb 7, 2026

Replaced inline log messages with LoggerMessage attribute based logging methods across classes. For readability they were extracted into separate files following the name schema <filename>.logger.cs. This was done to prevent a log execution validation of not execute log actions, because the log level not being met or because the logger is disabled in general. As all command paths are hot path, this was worth in regards of performance.

Replaced inline log messages with `LoggerMessage` attribute based
logging methods across classes. For readability they were extracted into
separate files following the name schema `<filename>.logger.cs`.
This was done to prevent a log execution validation of not execute log
actions, because the log level not being met or because the logger is
disabled in general. As all command paths are hot path, this was worth
in regards of performance.
@HaGGi13 HaGGi13 self-assigned this Feb 7, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Feb 7, 2026

@HaGGi13 HaGGi13 merged commit 5441038 into develop Feb 7, 2026
5 checks passed
@HaGGi13 HaGGi13 deleted the feature/fix-roslyn-ca1873-suggestion branch February 7, 2026 18: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