Skip to content

fix(logging): fix logging type when doing typeof(typename).Log() - #23256

Merged
ramezgerges merged 3 commits into
unoplatform:masterfrom
ramezgerges:fix_logging_types
May 13, 2026
Merged

ramezgerges merged 3 commits into
unoplatform:masterfrom
ramezgerges:fix_logging_types

Conversation

@ramezgerges

@ramezgerges ramezgerges commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: https://github.com/unoplatform/kahua-private/issues/478

PR Type:

What changed? 🚀

PR Checklist ✅

Copilot AI review requested due to automatic review settings May 12, 2026 16:12
@github-actions github-actions Bot added the area/skia ✏️ Categorizes an issue or PR as relevant to Skia label May 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Type instance (typeof(Foo)).
  • Update the spell-checking service missing message in UnicodeText to 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.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 212153 found UI Test snapshots differences: skia-linux-screenshots: 61, skia-windows-screenshots: 292, wasm: 9

Details
  • skia-linux-screenshots: 61 changed over 2346

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Focus_FocusVisual_Properties.png-dark
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • ClipboardTests.png-dark
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • DropDownButtonPage.png-dark
    • Buttons.png-dark
    • Buttons.png
    • Examples.png-dark
  • skia-windows-screenshots: 292 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ContentPresenter_NativeEmbedding_ZIndex.png
    • ElevatedView_Dimensions.png-dark
    • ElevatedView_Dimensions.png
    • ElevatedView_Levels.png-dark
    • ElevatedView_Levels.png
    • FluentStyle_NavigationViewSample.png-dark
    • FluentStyle_NavigationViewSample.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • EasClientDeviceInformation.png-dark
    • EasClientDeviceInformation.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ImageBrushAlignmentXY2.png-dark
    • ImageBrushAlignmentXY2.png
    • Accessibility_ScreenReader.png-dark
    • Battery.png-dark
  • wasm: 9 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • MUXControlsTestApp.SwipeControlPage2
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • initial_state
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Shared.Windows_UI_Xaml_Controls.ImageTests.Image_Stretch_Algmnt_Inf_Vertical

Copilot AI review requested due to automatic review settings May 12, 2026 20:19
@ramezgerges
ramezgerges enabled auto-merge May 12, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@agneszitte

Copy link
Copy Markdown
Member

@Mergifyio backport release/stable/6.6

@mergify

mergify Bot commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.6

✅ Backports have been created

Details

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 212220 found UI Test snapshots differences: skia-linux-screenshots: 61, skia-windows-screenshots: 279, wasm: 9

Details
  • skia-linux-screenshots: 61 changed over 2346

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • DisplayInformation.png-dark
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • CalendarView_Theming.png-dark
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageBrush_Stretch.png-dark
    • ImageBrush_Stretch.png
  • skia-windows-screenshots: 279 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Display.DisplayRequest.png-dark
    • Display.DisplayRequest.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • Haptics.VibrationDevice.png-dark
    • Haptics.VibrationDevice.png
    • Buttons.png-dark
    • Buttons.png
    • DataTemplate_Update_Sample.png-dark
    • DataTemplate_Update_Sample.png
    • DropDownButtonPage.png-dark
    • Battery.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Accessibility_ScreenReader.png
    • AuthenticationBroker_Demo.png
    • CompositionPath.png-dark
    • CompositionPath.png
  • wasm: 9 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • MUXControlsTestApp.SwipeControlPage2
    • initial_state
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • UITests.Shared.Windows_UI_Xaml_Controls.ImageTests.Image_Stretch_Algmnt_Inf_Vertical
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal

@ramezgerges
ramezgerges merged commit 74e3d07 into unoplatform:master May 13, 2026
50 checks passed
@ramezgerges
ramezgerges deleted the fix_logging_types branch May 13, 2026 14:29
agneszitte added a commit that referenced this pull request May 14, 2026
…6.6/pr-23256

fix(logging): fix logging type when doing typeof(typename).Log() (backport #23256)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/skia ✏️ Categorizes an issue or PR as relevant to Skia

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants