Uh oh!
There was an error while loading. Please reload this page.
[Group 3] Enable nullable annotations for Microsoft.Extensions.Logging - #65262
Conversation
ghost
commented
Feb 12, 2022
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
ghost
commented
Feb 12, 2022
Tagging subscribers to this area: @dotnet/area-extensions-logging Issue DetailsRelated to #43605 Questions:
|
maxkoshevoi
commented
Feb 14, 2022
Have no idea, why CI fails. |
looking |
I noticed that running auto generates the small diff in 23dc4b5 . Would you like to push this commit onto this PR to see if retriggering CI this way would fix the CI failures? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
maryamariyan
left a comment
There was a problem hiding this comment.
Aside the question in https://github.com/dotnet/runtime/pull/65262/files#r817973746 the rest looks fine to me.
maxkoshevoi
commented
Mar 4, 2022
@maryamariyan Hi, I'm in Ukraine (currently relatively safe in Lviv), so cannot be as active. I'll try to address the comments when I can, but if I don't respond for tool long or disappear altogether, feel free to commit to my branches. |
joperezr
commented
Mar 14, 2022
You need to invoke Pack in order for package validation to run, and for it to emit the baseline file. Try doing: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
LGTM aside from the ScopeLogger portion in #65262 (comment)
Uh oh!
There was an error while loading. Please reload this page.
eerhardt
left a comment
There was a problem hiding this comment.
This looks great. Thanks again for all the work here, @maxkoshevoi!
SteveDunn
commented
Mar 27, 2022
Stay safe my friend. |
…ng` (dotnet#65262) * First pass * Second pass * Pass three * Missed few things * ref * Update ProviderAliasUtilities.cs * Update ActivityTrackingOptions.cs * Update Microsoft.Extensions.Logging.cs * GetRequiredService * Update Logger.Scope * Create CompatibilitySuppressions.xml * Add comment to CompatibilitySuppressions.xml Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com> * Delete CompatibilitySuppressions.xml * AsyncLocal<Scope?> _currentScope * Add assert Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com>
Related to #43605
Questions:
GetRequiredServicehere, sinceDisposingLoggerFactorydoesn't accept null loggerFactoryruntime/src/libraries/Microsoft.Extensions.Logging/src/LoggerFactory.cs
Lines 97 to 98 in 348e06c
Loggercan be null here, I see no checks that say it couldn'truntime/src/libraries/Microsoft.Extensions.Logging/src/LoggerInformation.cs
Line 63 in 348e06c
runtime/src/libraries/Microsoft.Extensions.Logging/src/LoggerFactory.cs
Line 236 in 348e06c
Aliascan be null. Marked it as non-nullable for now: https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Logging/src/ProviderAliasAttribute.cs