diff --git a/Source/MQTTnet/Implementations/MqttTcpServerAdapter.Uwp.cs b/Source/MQTTnet/Implementations/MqttTcpServerAdapter.Uwp.cs index dd164ba98..bda777399 100644 --- a/Source/MQTTnet/Implementations/MqttTcpServerAdapter.Uwp.cs +++ b/Source/MQTTnet/Implementations/MqttTcpServerAdapter.Uwp.cs @@ -1,7 +1,7 @@ #if WINDOWS_UWP using Windows.Networking.Sockets; using MQTTnet.Adapter; -using MQTTnet.Diagnostics; +using MQTTnet.Diagnostics.Logger; using MQTTnet.Formatter; using MQTTnet.Server; using System; @@ -13,7 +13,7 @@ namespace MQTTnet.Implementations { public sealed class MqttTcpServerAdapter : IMqttServerAdapter { - readonly IMqttNetScopedLogger _logger; + readonly MqttNetSourceLogger _logger; readonly IMqttNetLogger _rootLogger; IMqttServerOptions _options; @@ -22,7 +22,7 @@ public sealed class MqttTcpServerAdapter : IMqttServerAdapter public MqttTcpServerAdapter(IMqttNetLogger logger) { _rootLogger = logger ?? throw new ArgumentNullException(nameof(logger)); - _logger = logger.CreateScopedLogger(nameof(MqttTcpServerAdapter)); + _logger = logger.WithSource(nameof(MqttTcpServerAdapter)); } public Func ClientHandler { get; set; }