Skip to content

Implement analyzer to favor using builder.Logging over ConfigureLogging#42354

Merged
pedro-camargo11 merged 4 commits into
dotnet:mainfrom
pedro-camargo11:AnalyzersPedro
Jun 28, 2022
Merged

Implement analyzer to favor using builder.Logging over ConfigureLogging#42354
pedro-camargo11 merged 4 commits into
dotnet:mainfrom
pedro-camargo11:AnalyzersPedro

Conversation

@pedro-camargo11
Copy link
Copy Markdown
Contributor

Add analyzer to suggest rewriting builder.Host.ConfigureLogging to builder.Logging

Analyzer that corresponds to issue #35816.

Description

Add analyzers that warns when using builder.Host.ConfigureLogging/builder.WebHost.ConfigureLogging, and favors using builder.Logging

Fixes
#35816

@pedro-camargo11 pedro-camargo11 requested a review from Pilchie as a code owner June 22, 2022 22:56
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 22, 2022
@pedro-camargo11 pedro-camargo11 changed the title Add analyzer issue #35816 Implement analyzer to favor using builder.Logging over ConfigureLogging Jun 23, 2022
Comment thread src/Framework/AspNetCoreAnalyzers/src/Analyzers/DiagnosticDescriptors.cs Outdated
…riptors.cs

Co-authored-by: Safia Abdalla <safia@safia.rocks>
@pedro-camargo11 pedro-camargo11 merged commit f4f4835 into dotnet:main Jun 28, 2022
@ghost ghost added this to the 7.0-preview7 milestone Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants