refactor: replace Console.WriteLine with DiagnosticLog service
All checks were successful
CI / Build (Linux) (push) Successful in 21s
All checks were successful
CI / Build (Linux) (push) Successful in 21s
Replace 495+ Console.WriteLine debug statements across handlers, dispatching, services, views, and window components with centralized DiagnosticLog service for proper logging infrastructure. Add new DiagnosticLog.cs service with Debug/Error methods to eliminate debug logging pollution in production code.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using Microsoft.Maui.Platform.Linux.Input;
|
||||
using Microsoft.Maui.Platform.Linux.Services;
|
||||
|
||||
namespace Microsoft.Maui.Platform.Linux.Window;
|
||||
|
||||
@@ -789,7 +790,7 @@ public class WaylandWindow : IDisposable
|
||||
// Create shared memory buffer
|
||||
CreateShmBuffer();
|
||||
|
||||
Console.WriteLine($"[Wayland] Window created: {_width}x{_height}");
|
||||
DiagnosticLog.Debug("WaylandWindow", $"Window created: {_width}x{_height}");
|
||||
}
|
||||
|
||||
private void CreateShmBuffer()
|
||||
@@ -910,7 +911,7 @@ public class WaylandWindow : IDisposable
|
||||
var window = (WaylandWindow)handle.Target!;
|
||||
|
||||
var interfaceName = Marshal.PtrToStringAnsi(iface);
|
||||
Console.WriteLine($"[Wayland] Global: {interfaceName} v{version}");
|
||||
DiagnosticLog.Debug("WaylandWindow", $"Global: {interfaceName} v{version}");
|
||||
|
||||
switch (interfaceName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user