-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[dotnet] Fix logging issue when log context level conflicts with logger already captured level #15057
[dotnet] Fix logging issue when log context level conflicts with logger already captured level #15057
Conversation
PR Reviewer Guide 🔍(Review updated until commit 77e8a05)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 77e8a05
Previous suggestionsSuggestions up to commit 029d0d6
|
Persistent review updated to latest commit 77e8a05 |
User description
Description
In general each
ILogger
should be copied toLogContext
.Motivation and Context
Fixes #13839
Types of changes
Checklist
PR Type
Bug fix, Tests
Description
Fixed log level handling in
LogContext
to ensure proper logging.Added logic to initialize loggers with the correct level in
LogContext
.Introduced new tests to validate logging behavior and context-specific log levels.
Ensured global log state reset in test setup and teardown.
Changes walkthrough 📝
LogContext.cs
Fix logger level handling in `LogContext`
dotnet/src/webdriver/Internal/Logging/LogContext.cs
LogContext
to initialize loggers with correct levels.IsEnabled
method to check logger levels accurately.LogTest.cs
Add tests for logging context behavior
dotnet/test/common/Internal/Logging/LogTest.cs