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

Revisit Razor logging #10641

Merged
merged 16 commits into from
Jul 19, 2024
Merged

Conversation

DustinCampbell
Copy link
Member

I recommend reviewing this commit-by-commit.

I took a look at logging to address an integration test issue where we should ignore any exceptions that occur during logging because xUnit's ITestOutputHelper is no longer available. Previously, we had swallowed these exceptions across all unit tests as well. However, in unit tests, these exceptions can be an early warning sign of other problems.

While addressing integration tests, I ended up taking a more thorough look at logging and ended up re-implementing the log message formatting to reduce string allocations. In addition, I cleaned up a fair number of redundant "no-op" loggers and did an audit of all ILoggerProviders to determine which ones needed to implement IDisposable.

@DustinCampbell DustinCampbell requested review from a team as code owners July 18, 2024 00:09
@DustinCampbell DustinCampbell merged commit abec894 into dotnet:main Jul 19, 2024
12 checks passed
@DustinCampbell DustinCampbell deleted the revisit-logging branch July 19, 2024 20:20
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 19, 2024
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.

6 participants