Repository navigation
fix(logging): fix logging type when doing typeof(typename).Log() - #23256
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts Uno’s internal logging extension methods so that calls like typeof(MyType).LogInfo()/LogWarn() resolve the logger category to MyType instead of System.Type, and it updates a spell-checking fallback log in UnicodeText to use warning-level logging.
Changes:
- Fix logger category resolution when the logging extensions are invoked on a
Typeinstance (typeof(Foo)). - Update the spell-checking service missing message in
UnicodeTextto log as a warning.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/Uno.UI/UI/Xaml/Documents/UnicodeText.skia.cs | Changes the spell-checking fallback log level and message formatting in the ISpellCheckingService lazy initializer. |
| src/Uno.Foundation.Logging/LogExtensionPoint.cs | Updates Log<T>(this T) to special-case Type instances to create loggers for the referenced type. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23256/wasm-skia-net9/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23256/wasm-skia-net9/index.html |
|
The build 212153 found UI Test snapshots differences: Details
|
|
@Mergifyio backport release/stable/6.6 |
✅ Backports have been createdDetails
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23256/wasm-skia-net9/index.html |
|
The build 212220 found UI Test snapshots differences: Details
|
…6.6/pr-23256 fix(logging): fix logging type when doing typeof(typename).Log() (backport #23256)
GitHub Issue: https://github.com/unoplatform/kahua-private/issues/478
PR Type:
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.