diff --git a/Yubico.Core/src/Yubico/Core/Devices/Hid/MacOSHidDevice.cs b/Yubico.Core/src/Yubico/Core/Devices/Hid/MacOSHidDevice.cs index a408a4686..27a6ca09f 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);