From d40d837e00716a02d7facf047bfe025ecf344da4 Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Tue, 13 Aug 2024 21:18:33 +0200 Subject: [PATCH] Revert using removal --- .../src/Yubico/Core/Devices/Hid/MacOSHidDevice.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Yubico.Core/src/Yubico/Core/Devices/Hid/MacOSHidDevice.cs b/Yubico.Core/src/Yubico/Core/Devices/Hid/MacOSHidDevice.cs index a408a468..27a6ca09 100644 --- a/Yubico.Core/src/Yubico/Core/Devices/Hid/MacOSHidDevice.cs +++ b/Yubico.Core/src/Yubico/Core/Devices/Hid/MacOSHidDevice.cs @@ -18,18 +18,19 @@ using System.Linq; using Microsoft.Extensions.Logging; using Yubico.PlatformInterop; +using Yubico.Core.Logging; using static Yubico.PlatformInterop.NativeMethods; namespace Yubico.Core.Devices.Hid { /// - /// macOS implementation of a Human Interface Device (HID) + /// MacOS implementation of a Human Interface Device (HID) /// internal class MacOSHidDevice : HidDevice { private readonly long _entryId; - private readonly ILogger _log = Logging.Log.GetLogger(); + private readonly ILogger _log = Log.GetLogger(); public MacOSHidDevice(long entryId) : base(entryId.ToString(CultureInfo.InvariantCulture)) @@ -49,7 +50,7 @@ public MacOSHidDevice(long entryId) : /// public static IEnumerable GetList() { - ILogger log = Logging.Log.GetLogger(typeof(MacOSHidDevice).FullName!); + ILogger log = Log.GetLogger(typeof(MacOSHidDevice).FullName!); using IDisposable? logScope = log.BeginScope("MacOSHidDevice.GetList()"); IntPtr manager = IntPtr.Zero; @@ -116,7 +117,7 @@ public override IHidConnection ConnectToIOReports() => internal static long GetEntryId(IntPtr device) { - ILogger log = Logging.Log.GetLogger(typeof(MacOSHidDevice).FullName!); + ILogger log = Log.GetLogger(typeof(MacOSHidDevice).FullName!); int service = IOHIDDeviceGetService(device); kern_return_t result = IORegistryEntryGetRegistryEntryID(service, out long entryId);