Skip to content

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

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

Merged
merged 4 commits into from
Jun 28, 2022

Conversation

pedro-camargo11
Copy link
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
…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